use computed
This commit is contained in:
parent
6710637904
commit
2435961b58
|
@ -25,11 +25,9 @@ Discourse.AdminUserIndexController = Discourse.ObjectController.extend({
|
||||||
|
|
||||||
primaryGroupDirty: Discourse.computed.propertyNotEqual('originalPrimaryGroupId', 'primary_group_id'),
|
primaryGroupDirty: Discourse.computed.propertyNotEqual('originalPrimaryGroupId', 'primary_group_id'),
|
||||||
|
|
||||||
custom_groups: function(){
|
custom_groups: Ember.computed.filter("model.groups", function(g){
|
||||||
return this.get("model.groups").filter(function(g){
|
return (!g.automatic && g.visible);
|
||||||
return (!g.automatic && g.visible);
|
}),
|
||||||
});
|
|
||||||
}.property("model.groups.[]"),
|
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
toggleTitleEdit: function() {
|
toggleTitleEdit: function() {
|
||||||
|
|
Loading…
Reference in New Issue