make permissions dependend on array.length

This commit is contained in:
lislis 2016-04-06 12:38:20 +02:00
parent e3efe7d7fc
commit ae57f3903e

View File

@ -25,14 +25,14 @@ export default Ember.Component.extend({
},
displaySettingsLink: function() {
return hasPushPermission(this.get('currentUser'), this.get('repo.id'));
}.property('currentUser.pushPermissions', 'repo.id'),
}.property('currentUser.pushPermissions.length', 'repo'),
displayCachesLink: function() {
return hasPushPermission(this.get('currentUser'), this.get('repo.id')) && config.endpoints.caches;
}.property('currentUser.pushPermissions', 'repo.id'),
}.property('currentUser.pushPermissions.length', 'repo'),
displayStatusImages: function() {
return hasPermission(this.get('currentUser'), this.get('repo.id'));
}.property('currentUser.permissions', 'repo.id')
}.property('currentUser.permissions.length', 'repo.id')
});