fix show/hide filter menu entry for documents

This commit is contained in:
j 2020-02-13 21:35:42 +01:00
parent 8dd47e770f
commit 966587112c

View file

@ -1669,7 +1669,11 @@ pandora.ui.mainMenu = function() {
{
id: 'showfilters',
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',