mirror of
https://github.com/documize/community.git
synced 2025-07-21 14:19:43 +02:00
Explicit computed properties declaration for section header
This commit is contained in:
parent
3993cfeb8e
commit
c705e8c299
6 changed files with 661 additions and 661 deletions
|
@ -33,7 +33,7 @@ export default Component.extend(ModalMixin, {
|
|||
emptySearch: computed('docSearchResults', function() {
|
||||
return this.get('docSearchResults.length') === 0;
|
||||
}),
|
||||
hasMenuPermissions: computed('permissions', 'userPendingItem', 'canEdit', 'canMove', 'canDelete', function() {
|
||||
hasMenuPermissions: computed('permissions.{documentCopy,documentTemplate}', 'userPendingItem', 'canEdit', 'canMove', 'canDelete', function() {
|
||||
let permissions = this.get('permissions');
|
||||
|
||||
return permissions.get('documentCopy') || permissions.get('documentTemplate') ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue