refactor fix in 67c4c90159

This commit is contained in:
Régis Hanol
2014-12-03 13:00:02 +01:00
parent acc62f2ec2
commit f9f54e2626
3 changed files with 7 additions and 13 deletions

View File

@@ -298,9 +298,7 @@ Discourse.AdminUser = Discourse.User.extend({
});
},
deleteForbidden: function() {
return (!this.get('can_be_deleted') || this.get('post_count') > 0);
}.property('post_count'),
deleteForbidden: Em.computed.not("canBeDeleted"),
deleteExplanation: function() {
if (this.get('deleteForbidden')) {