mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
983110d931
no issue - add eslint-plugin-ember, configure no-old-shims rule - run `eslint --fix` on `app`, `lib`, `mirage`, and `tests` to move imports to the new module imports - further cleanup of Ember globals usage - remove event-dispatcher initializer now that `canDispatchToEventManager` is deprecated
29 lines
676 B
JavaScript
29 lines
676 B
JavaScript
import Controller from '@ember/controller';
|
|
import {inject as injectService} from '@ember/service';
|
|
import {sort} from '@ember/object/computed';
|
|
|
|
export default Controller.extend({
|
|
|
|
showInviteUserModal: false,
|
|
|
|
activeUsers: null,
|
|
suspendedUsers: null,
|
|
invites: null,
|
|
|
|
session: injectService(),
|
|
|
|
inviteOrder: ['email'],
|
|
sortedInvites: sort('invites', 'inviteOrder'),
|
|
|
|
userOrder: ['name', 'email'],
|
|
|
|
sortedActiveUsers: sort('activeUsers', 'userOrder'),
|
|
sortedSuspendedUsers: sort('suspendedUsers', 'userOrder'),
|
|
|
|
actions: {
|
|
toggleInviteUserModal() {
|
|
this.toggleProperty('showInviteUserModal');
|
|
}
|
|
}
|
|
});
|