mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
9adbcd1fd0
no issue Automated tools, code generators, and editor integrations are increasingly standardising on the import style used in `ember-modules-codemod`. Our import style differed a little with regards to service/controller injection imports which meant we were starting to see inconsistent naming.
29 lines
664 B
JavaScript
29 lines
664 B
JavaScript
import Controller from '@ember/controller';
|
|
import {inject as service} from '@ember/service';
|
|
import {sort} from '@ember/object/computed';
|
|
|
|
export default Controller.extend({
|
|
|
|
showInviteUserModal: false,
|
|
|
|
activeUsers: null,
|
|
suspendedUsers: null,
|
|
invites: null,
|
|
|
|
session: service(),
|
|
|
|
inviteOrder: ['email'],
|
|
sortedInvites: sort('invites', 'inviteOrder'),
|
|
|
|
userOrder: ['name', 'email'],
|
|
|
|
sortedActiveUsers: sort('activeUsers', 'userOrder'),
|
|
sortedSuspendedUsers: sort('suspendedUsers', 'userOrder'),
|
|
|
|
actions: {
|
|
toggleInviteUserModal() {
|
|
this.toggleProperty('showInviteUserModal');
|
|
}
|
|
}
|
|
});
|