Only disable collection management for TV
This commit is contained in:
parent
85fcf9821a
commit
43addea602
1 changed files with 3 additions and 4 deletions
|
@ -15,7 +15,6 @@ import toast from './toast/toast';
|
||||||
const user = options.user;
|
const user = options.user;
|
||||||
|
|
||||||
const canPlay = playbackManager.canPlay(item);
|
const canPlay = playbackManager.canPlay(item);
|
||||||
const restrictOptions = (browser.operaTv || browser.web0s) && !user.Policy.IsAdministrator;
|
|
||||||
|
|
||||||
const commands = [];
|
const commands = [];
|
||||||
|
|
||||||
|
@ -99,8 +98,8 @@ import toast from './toast/toast';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.EnableCollectionManagement && !restrictOptions) {
|
if (!browser.tv) {
|
||||||
if (itemHelper.supportsAddingToCollection(item)) {
|
if (itemHelper.supportsAddingToCollection(item) && options.EnableCollectionManagement) {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: globalize.translate('AddToCollection'),
|
name: globalize.translate('AddToCollection'),
|
||||||
id: 'addtocollection',
|
id: 'addtocollection',
|
||||||
|
@ -272,7 +271,7 @@ import toast from './toast/toast';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!restrictOptions && options.share === true && itemHelper.canShare(item, user)) {
|
if (!browser.tv && options.share === true && itemHelper.canShare(item, user)) {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: globalize.translate('Share'),
|
name: globalize.translate('Share'),
|
||||||
id: 'share',
|
id: 'share',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue