diff --git a/ghost/admin/app/components/gh-members-list-item.hbs b/ghost/admin/app/components/gh-members-list-item.hbs index b3ddff3ca6..6ab445b814 100644 --- a/ghost/admin/app/components/gh-members-list-item.hbs +++ b/ghost/admin/app/components/gh-members-list-item.hbs @@ -31,7 +31,7 @@ {{#if @member.createdAtUTC}} - {{moment-format @member.createdAtUTC "MMM DD, YYYY"}} ({{this.memberSince}}) + {{moment-format @member.createdAtUTC "MMM DD, YYYY"}} ({{moment-from-now @member.createdAtUTC}}) {{/if}} diff --git a/ghost/admin/app/components/gh-members-list-item.js b/ghost/admin/app/components/gh-members-list-item.js deleted file mode 100644 index cf05ad3dfc..0000000000 --- a/ghost/admin/app/components/gh-members-list-item.js +++ /dev/null @@ -1,13 +0,0 @@ -import Component from '@glimmer/component'; -import moment from 'moment'; - -export default class GhMembersListItemComponent extends Component { - get memberSince() { - // member can be a proxy in a sparse array so .get is required - let createdAt = this.args.member.get('createdAtUTC'); - if (createdAt) { - return moment(createdAt).from(moment()); - } - return null; - } -}