diff --git a/src/components/itemContextMenu.js b/src/components/itemContextMenu.js index 28dc31226..1e33d66af 100644 --- a/src/components/itemContextMenu.js +++ b/src/components/itemContextMenu.js @@ -99,6 +99,16 @@ export function getCommands(options) { } if (!browser.tv) { + // Multiselect is currrently only ran on long clicks of card components + // This disables Select on any context menu not originating from a card i.e songs + if (options.positionTo && (dom.parentWithClass(options.positionTo, 'card') !== null)) { + commands.push({ + name: globalize.translate('Select'), + id: 'multiSelect', + icon: 'library_add_check' + }); + } + if (itemHelper.supportsAddingToCollection(item) && options.EnableCollectionManagement) { commands.push({ name: globalize.translate('AddToCollection'), @@ -116,16 +126,6 @@ export function getCommands(options) { } } - // Multiselect is currrently only ran on long clicks of card components - // This disables Select on any context menu not originating from a card i.e songs - if (options.positionTo && (dom.parentWithClass(options.positionTo, 'card') !== null)) { - commands.push({ - name: globalize.translate('Select'), - id: 'multiSelect', - icon: 'library_add_check' - }); - } - if ((item.Type === 'Timer') && user.Policy.EnableLiveTvManagement && options.cancelTimer !== false) { commands.push({ name: globalize.translate('CancelRecording'),