mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
511d5d9b4c
closes #5951 - update to esa 1.0
19 lines
485 B
JavaScript
19 lines
485 B
JavaScript
import Ember from 'ember';
|
|
|
|
export default Ember.Controller.extend({
|
|
|
|
session: Ember.inject.service(),
|
|
|
|
users: Ember.computed.alias('model'),
|
|
|
|
activeUsers: Ember.computed.filter('users', function (user) {
|
|
return /^active|warn-[1-4]|locked$/.test(user.get('status'));
|
|
}),
|
|
|
|
invitedUsers: Ember.computed.filter('users', function (user) {
|
|
var status = user.get('status');
|
|
|
|
return status === 'invited' || status === 'invited-pending';
|
|
})
|
|
});
|