Browse Source

Use shorthand for isPermanent

Rafał Pitoń 10 years ago
parent
commit
dbdd5b817d
1 changed files with 1 additions and 3 deletions
  1. 1 3
      misago/emberapp/app/controllers/error-banned.js

+ 1 - 3
misago/emberapp/app/controllers/error-banned.js

@@ -1,9 +1,7 @@
 import Ember from 'ember';
 import Ember from 'ember';
 
 
 export default Ember.ObjectController.extend({
 export default Ember.ObjectController.extend({
-  isPermanent: function() {
-    return this.get('model.expires_on') === null;
-  }.property('model'),
+  isPermanent: Ember.computed.empty('model.expires_on'),
 
 
   expiresMoment: function() {
   expiresMoment: function() {
     if (!this.get('isPermanent')) {
     if (!this.get('isPermanent')) {