mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
51ed2868f7
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
19 lines
504 B
JavaScript
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;
|