Remove unused sync code
This commit is contained in:
parent
78d8253f13
commit
9eeec9270d
6 changed files with 0 additions and 41 deletions
|
@ -230,10 +230,6 @@ const supportedFeatures = function () {
|
||||||
features.push('htmlvideoautoplay');
|
features.push('htmlvideoautoplay');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (browser.edgeUwp) {
|
|
||||||
features.push('sync');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (supportsFullscreen()) {
|
if (supportsFullscreen()) {
|
||||||
features.push('fullscreenchange');
|
features.push('fullscreenchange');
|
||||||
}
|
}
|
||||||
|
|
|
@ -290,14 +290,6 @@ export function getCommands(options) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.sync !== false && itemHelper.canSync(user, item)) {
|
|
||||||
commands.push({
|
|
||||||
name: globalize.translate('Sync'),
|
|
||||||
id: 'sync',
|
|
||||||
icon: 'sync'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options.openAlbum !== false && item.AlbumId && item.MediaType !== 'Photo') {
|
if (options.openAlbum !== false && item.AlbumId && item.MediaType !== 'Photo') {
|
||||||
commands.push({
|
commands.push({
|
||||||
name: globalize.translate('ViewAlbum'),
|
name: globalize.translate('ViewAlbum'),
|
||||||
|
|
|
@ -154,18 +154,6 @@ export function canEditImages (user, item) {
|
||||||
return itemType !== 'Timer' && itemType !== 'SeriesTimer' && canEdit(user, item) && !isLocalItem(item);
|
return itemType !== 'Timer' && itemType !== 'SeriesTimer' && canEdit(user, item) && !isLocalItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function canSync (user, item) {
|
|
||||||
if (user && !user.Policy.EnableContentDownloading) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isLocalItem(item)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return item.SupportsSync;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function canShare (item, user) {
|
export function canShare (item, user) {
|
||||||
if (item.Type === 'Program') {
|
if (item.Type === 'Program') {
|
||||||
return false;
|
return false;
|
||||||
|
@ -311,7 +299,6 @@ export default {
|
||||||
canIdentify: canIdentify,
|
canIdentify: canIdentify,
|
||||||
canEdit: canEdit,
|
canEdit: canEdit,
|
||||||
canEditImages: canEditImages,
|
canEditImages: canEditImages,
|
||||||
canSync: canSync,
|
|
||||||
canShare: canShare,
|
canShare: canShare,
|
||||||
enableDateAddedDisplay: enableDateAddedDisplay,
|
enableDateAddedDisplay: enableDateAddedDisplay,
|
||||||
canMarkPlayed: canMarkPlayed,
|
canMarkPlayed: canMarkPlayed,
|
||||||
|
|
|
@ -260,7 +260,6 @@ function showMoreMenu(context, button, user) {
|
||||||
edit: false,
|
edit: false,
|
||||||
editImages: true,
|
editImages: true,
|
||||||
editSubtitles: true,
|
editSubtitles: true,
|
||||||
sync: false,
|
|
||||||
share: false,
|
share: false,
|
||||||
play: false,
|
play: false,
|
||||||
queue: false,
|
queue: false,
|
||||||
|
|
|
@ -421,24 +421,10 @@ function showBySelector(selector, show) {
|
||||||
|
|
||||||
function updateLibraryMenu(user) {
|
function updateLibraryMenu(user) {
|
||||||
if (!user) {
|
if (!user) {
|
||||||
showBySelector('.libraryMenuDownloads', false);
|
|
||||||
showBySelector('.lnkSyncToOtherDevices', false);
|
|
||||||
showBySelector('.userMenuOptions', false);
|
showBySelector('.userMenuOptions', false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.Policy.EnableContentDownloading) {
|
|
||||||
showBySelector('.lnkSyncToOtherDevices', true);
|
|
||||||
} else {
|
|
||||||
showBySelector('.lnkSyncToOtherDevices', false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (user.Policy.EnableContentDownloading && appHost.supports('sync')) {
|
|
||||||
showBySelector('.libraryMenuDownloads', true);
|
|
||||||
} else {
|
|
||||||
showBySelector('.libraryMenuDownloads', false);
|
|
||||||
}
|
|
||||||
|
|
||||||
const userId = Dashboard.getCurrentUserId();
|
const userId = Dashboard.getCurrentUserId();
|
||||||
const apiClient = getCurrentApiClient();
|
const apiClient = getCurrentApiClient();
|
||||||
|
|
||||||
|
|
|
@ -1497,7 +1497,6 @@
|
||||||
"SubtitleYellow": "Yellow",
|
"SubtitleYellow": "Yellow",
|
||||||
"Suggestions": "Suggestions",
|
"Suggestions": "Suggestions",
|
||||||
"Sunday": "Sunday",
|
"Sunday": "Sunday",
|
||||||
"Sync": "Sync",
|
|
||||||
"SyncPlayAccessHelp": "The SyncPlay feature enables to sync playback with other devices. Select the level of access this user has to the SyncPlay.",
|
"SyncPlayAccessHelp": "The SyncPlay feature enables to sync playback with other devices. Select the level of access this user has to the SyncPlay.",
|
||||||
"SyncPlayGroupDefaultTitle": "{0}'s group",
|
"SyncPlayGroupDefaultTitle": "{0}'s group",
|
||||||
"SystemDlnaProfilesHelp": "System profiles are read-only. Changes to a system profile will be saved to a new custom profile.",
|
"SystemDlnaProfilesHelp": "System profiles are read-only. Changes to a system profile will be saved to a new custom profile.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue