Ghost/ghost/admin/controllers/settings/users/index.js
Maurice Williams 51ed2868f7 Removing old "user settings" screen and putting in new MU "users settings" screen and updating functional test cases.
Fixes #3078
- new "users" resource, with matching controller and template
- fetching real data from /ghost/api/v0.1/users/
- updated "user" route to accept a :slug as a URL parameter
- updated labels everywhere (from "user" to "users")
- updated "profile" link to header to point to proper "users/:slug" route
- updated core/client/.jshintrc to recognize moment as a valid global function
- adjusted DOM selector used in Casper to properly identify the new screen
- adding "slug" as a new property of the user data used during the Casper functional tests
2014-07-05 11:33:03 -04:00

19 lines
504 B
JavaScript

/*global alert */
var UsersIndexController = Ember.ArrayController.extend({
activeUsers: function () {
return this.content.filterBy('status', 'active');
}.property('model'),
invitedUsers: function () {
return this.content.filterBy('status', 'invited');
}.property('model'),
actions: {
addUser: function () {
alert('@TODO: needs to show the "add user" modal - see issue #3079 on GitHub');
}
}
});
export default UsersIndexController;