make permissions dependend on array.length
This commit is contained in:
parent
e3efe7d7fc
commit
ae57f3903e
|
@ -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')
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user