summaryrefslogtreecommitdiffstats
path: root/ui/src/components/user.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-03-08 14:29:17 -0400
committerDessalines <tyhou13@gmx.com>2020-03-08 14:29:17 -0400
commitcf516fcc83e1214f5822680656832485abd01aff (patch)
tree0436de8f58e85451bd5c4c6d96776a66b97f4767 /ui/src/components/user.tsx
parent2eb681413d03b4e29d93bec833e01bc9431a7c63 (diff)
Show ago for user details. Fixes #586
Diffstat (limited to 'ui/src/components/user.tsx')
-rw-r--r--ui/src/components/user.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx
index e97d7b08..48285113 100644
--- a/ui/src/components/user.tsx
+++ b/ui/src/components/user.tsx
@@ -37,6 +37,7 @@ import {
createCommentLikeRes,
createPostLikeFindRes,
commentsToFlatNodes,
+ setupTippy,
} from '../utils';
import { PostListing } from './post-listing';
import { SortSelect } from './sort-select';
@@ -358,7 +359,7 @@ export class User extends Component<any, UserState> {
</ul>
</h5>
<div>
- {i18n.t('joined')} <MomentTime data={user} />
+ {i18n.t('joined')} <MomentTime data={user} showAgo />
</div>
<div class="table-responsive mt-1">
<table class="table table-bordered table-sm mt-2 mb-0">
@@ -1034,6 +1035,7 @@ export class User extends Component<any, UserState> {
document.title = `/u/${this.state.user.name} - ${WebSocketService.Instance.site.name}`;
window.scrollTo(0, 0);
this.setState(this.state);
+ setupTippy();
} else if (res.op == UserOperation.EditComment) {
let data = res.data as CommentResponse;
editCommentRes(data, this.state.comments);