Ignore updated for user page. Fixes #139

This commit is contained in:
Dessalines 2021-02-02 12:26:08 -05:00
parent f9eeabb2f9
commit a28a8d059e
2 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@ interface MomentTimeProps {
updated?: string;
};
showAgo?: boolean;
ignoreUpdated?: boolean;
}
export class MomentTime extends Component<MomentTimeProps, any> {
@ -22,7 +23,7 @@ export class MomentTime extends Component<MomentTimeProps, any> {
}
render() {
if (this.props.data.updated) {
if (!this.props.ignoreUpdated && this.props.data.updated) {
return (
<span
data-tippy-content={`${capitalizeFirstLetter(

View file

@ -478,7 +478,8 @@ export class User extends Component<any, UserState> {
</ul>
</div>
<div class="text-muted">
{i18n.t('joined')} <MomentTime data={uv.user} showAgo />
{i18n.t('joined')}{' '}
<MomentTime data={uv.user} showAgo ignoreUpdated />
</div>
<div className="d-flex align-items-center text-muted mb-2">
<svg class="icon">