mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove unused sync code
This commit is contained in:
parent
78d8253f13
commit
9eeec9270d
6 changed files with 0 additions and 41 deletions
|
@ -421,24 +421,10 @@ function showBySelector(selector, show) {
|
|||
|
||||
function updateLibraryMenu(user) {
|
||||
if (!user) {
|
||||
showBySelector('.libraryMenuDownloads', false);
|
||||
showBySelector('.lnkSyncToOtherDevices', false);
|
||||
showBySelector('.userMenuOptions', false);
|
||||
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 apiClient = getCurrentApiClient();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue