mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
document tag editor re-vamped
This commit is contained in:
parent
d6e18b4289
commit
9ccd0fd19c
9 changed files with 54 additions and 48 deletions
|
@ -21,8 +21,11 @@ export default Ember.Component.extend(TooltipMixin, NotifierMixin, {
|
|||
hasCategories: Ember.computed('categories', function() {
|
||||
return this.get('categories').length > 0;
|
||||
}),
|
||||
canAdd: Ember.computed('categories', function() {
|
||||
return this.get('categories').length > 0 && this.get('permissions.documentEdit');
|
||||
canSelectCategory: Ember.computed('categories', function() {
|
||||
return (this.get('categories').length > 0 && this.get('permissions.documentEdit'));
|
||||
}),
|
||||
canAddCategory: Ember.computed('categories', function() {
|
||||
return this.get('permissions.spaceOwner') || this.get('permissions.spaceManage');
|
||||
}),
|
||||
|
||||
init() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue