mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 06:36:17 +00:00
Ignore updated for user page. Fixes #139
This commit is contained in:
parent
f9eeabb2f9
commit
a28a8d059e
|
@ -10,6 +10,7 @@ interface MomentTimeProps {
|
||||||
updated?: string;
|
updated?: string;
|
||||||
};
|
};
|
||||||
showAgo?: boolean;
|
showAgo?: boolean;
|
||||||
|
ignoreUpdated?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class MomentTime extends Component<MomentTimeProps, any> {
|
export class MomentTime extends Component<MomentTimeProps, any> {
|
||||||
|
@ -22,7 +23,7 @@ export class MomentTime extends Component<MomentTimeProps, any> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
if (this.props.data.updated) {
|
if (!this.props.ignoreUpdated && this.props.data.updated) {
|
||||||
return (
|
return (
|
||||||
<span
|
<span
|
||||||
data-tippy-content={`${capitalizeFirstLetter(
|
data-tippy-content={`${capitalizeFirstLetter(
|
||||||
|
|
|
@ -478,7 +478,8 @@ export class User extends Component<any, UserState> {
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="text-muted">
|
<div class="text-muted">
|
||||||
{i18n.t('joined')} <MomentTime data={uv.user} showAgo />
|
{i18n.t('joined')}{' '}
|
||||||
|
<MomentTime data={uv.user} showAgo ignoreUpdated />
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex align-items-center text-muted mb-2">
|
<div className="d-flex align-items-center text-muted mb-2">
|
||||||
<svg class="icon">
|
<svg class="icon">
|
||||||
|
|
Loading…
Reference in a new issue