disable Manage Entities... button if no entities are defined. fixes #2704

This commit is contained in:
j 2015-03-03 08:17:48 +00:00
parent e702dddd6b
commit 5ce83cbe63

View file

@ -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({