Ghost/core/client/controllers/settings/users/index.js
Hannah Wolfe ab90c40e4e Adding helper for invite status
closes #3309, refs #3229

- adds different message depending on status
- doesn't delete the new user if the problem was an email error
- filters the 2 lists based on all statuses
2014-07-20 09:23:57 +01:00

10 lines
315 B
JavaScript

var UsersIndexController = Ember.ArrayController.extend({
users: Ember.computed.alias('model'),
activeUsers: Ember.computed.filterBy('users', 'active', true).property('users'),
invitedUsers: Ember.computed.filterBy('users', 'invited', true).property('users')
});
export default UsersIndexController;