disable Manage Entities... button if no entities are defined. fixes #2704
This commit is contained in:
parent
e702dddd6b
commit
5ce83cbe63
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ pandora.ui.documentsDialog = function() {
|
|||
|
||||
// FIXME: user may not have the manage entites capability
|
||||
$switchButton = Ox.Button({
|
||||
disabled: !pandora.site.entities.length || !pandora.site.capabilities.canManageEntities[pandora.user.level],
|
||||
title: Ox._('Manage Entities...')
|
||||
})
|
||||
.bindEvent({
|
||||
|
|
Loading…
Reference in a new issue