mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove Select option from tvs
This commit is contained in:
parent
447b6f5582
commit
a83e3b121b
1 changed files with 10 additions and 10 deletions
|
@ -99,6 +99,16 @@ export function getCommands(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!browser.tv) {
|
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) {
|
if (itemHelper.supportsAddingToCollection(item) && options.EnableCollectionManagement) {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: globalize.translate('AddToCollection'),
|
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) {
|
if ((item.Type === 'Timer') && user.Policy.EnableLiveTvManagement && options.cancelTimer !== false) {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: globalize.translate('CancelRecording'),
|
name: globalize.translate('CancelRecording'),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue