add 'Manage Entities...' to main menu

This commit is contained in:
rolux 2014-11-19 16:05:48 +00:00
parent 3fa5fa76e9
commit e2c5da26f2

View file

@ -197,6 +197,7 @@ pandora.ui.mainMenu = function() {
getFindMenu(),
{ id: 'dataMenu', title: Ox._('Data'), items: [
{ id: 'documents', title: Ox._('Manage Documents...'), disabled: !pandora.site.capabilities.canManageDocuments[pandora.user.level] },
{ id: 'entities', title: Ox._('Manage Entities...'), disabled: !pandora.site.capabilities.canManageEntities[pandora.user.level] },
{},
{ id: 'titles', title: Ox._('Manage Titles...'), disabled: !pandora.site.capabilities.canManageTitlesAndNames[pandora.user.level] },
{ id: 'names', title: Ox._('Manage Names...'), disabled: !pandora.site.capabilities.canManageTitlesAndNames[pandora.user.level] },
@ -491,6 +492,8 @@ pandora.ui.mainMenu = function() {
pandora.$ui.similarClipsDialog = pandora.ui.similarClipsDialog().open();
} else if (data.id == 'documents') {
pandora.$ui.documentsDialog = pandora.ui.documentsDialog().open();
} else if (data.id == 'entities') {
pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog().open();
} else if (data.id == 'titles') {
(pandora.$ui.titlesDialog || (
pandora.$ui.titlesDialog = pandora.ui.titlesDialog()