mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Ignore updated for user page. Fixes #139
This commit is contained in:
parent
f9eeabb2f9
commit
a28a8d059e
2 changed files with 4 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue