2019-10-02 06:59:47 +03:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import moment from 'moment';
|
|
|
|
import {alias} from '@ember/object/computed';
|
|
|
|
import {computed} from '@ember/object';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
ghostPaths: service(),
|
|
|
|
notifications: service(),
|
|
|
|
router: service(),
|
|
|
|
|
|
|
|
tagName: 'li',
|
2019-10-21 14:09:56 +03:00
|
|
|
classNames: ['gh-list-row', 'gh-members-list-item'],
|
2019-10-02 06:59:47 +03:00
|
|
|
|
|
|
|
active: false,
|
|
|
|
|
|
|
|
id: alias('member.id'),
|
|
|
|
email: alias('member.email'),
|
2019-10-03 13:56:31 +03:00
|
|
|
name: alias('member.name'),
|
2019-10-15 17:11:43 +03:00
|
|
|
memberSince: computed('member.createdAt', function () {
|
|
|
|
return moment(this.member.createdAt).from(moment());
|
|
|
|
}),
|
|
|
|
createdDate: computed('member.createdAt', function () {
|
|
|
|
return moment(this.member.createdAt).format('MMM DD, YYYY');
|
2019-10-02 06:59:47 +03:00
|
|
|
})
|
|
|
|
});
|