mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
5bfe1c2095
* Fixed Firefox bug for input groups * Moved from `rem` based responsive styles to `px` based * Fixed invisible clickable menus for member/user list * Added responsive CSS for meembers list header * Updated member list responsive styles * Fix list header responsive style
27 lines
783 B
JavaScript
27 lines
783 B
JavaScript
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',
|
|
classNames: ['gh-list-row', 'gh-members-list-item'],
|
|
|
|
active: false,
|
|
|
|
id: alias('member.id'),
|
|
email: alias('member.email'),
|
|
name: alias('member.name'),
|
|
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');
|
|
})
|
|
});
|