fix show/hide filter menu entry for documents
This commit is contained in:
parent
8dd47e770f
commit
966587112c
1 changed files with 5 additions and 1 deletions
|
@ -1669,7 +1669,11 @@ pandora.ui.mainMenu = function() {
|
||||||
{
|
{
|
||||||
id: 'showfilters',
|
id: 'showfilters',
|
||||||
title: Ox._((ui.showFilters ? 'Hide' : 'Show') + ' Filters'),
|
title: Ox._((ui.showFilters ? 'Hide' : 'Show') + ' Filters'),
|
||||||
disabled: ui.section != 'items' || !!ui.item, keyboard: 'shift f'
|
disabled: (
|
||||||
|
!Ox.contains(['items', 'documents'], ui.section) ||
|
||||||
|
(ui.section == 'items' && !!ui.item) ||
|
||||||
|
(ui.section == 'documents' && !!ui.document)
|
||||||
|
), keyboard: 'shift f'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'showbrowser',
|
id: 'showbrowser',
|
||||||
|
|
Loading…
Reference in a new issue