mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update satip page
This commit is contained in:
parent
aea73b9a95
commit
d7d43a8d89
3 changed files with 21 additions and 11 deletions
|
@ -559,10 +559,22 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if (user.Policy.EnableSync) {
|
||||
showBySelector('.lnkMySync', true);
|
||||
} else {
|
||||
showBySelector('.lnkMySync', false);
|
||||
}
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
var apiClient = window.ApiClient;
|
||||
|
||||
var libraryMenuOptions = document.querySelector('.libraryMenuOptions');
|
||||
|
||||
if (!libraryMenuOptions) {
|
||||
return;
|
||||
}
|
||||
|
||||
getUserViews(apiClient, userId).then(function (result) {
|
||||
|
||||
var items = result;
|
||||
|
@ -629,7 +641,6 @@
|
|||
|
||||
}).join('');
|
||||
|
||||
var libraryMenuOptions = document.querySelector('.libraryMenuOptions');
|
||||
libraryMenuOptions.innerHTML = html;
|
||||
var elem = libraryMenuOptions;
|
||||
|
||||
|
@ -639,12 +650,6 @@
|
|||
sidebarLinks[i].addEventListener('click', onSidebarLinkClick);
|
||||
}
|
||||
});
|
||||
|
||||
if (user.Policy.EnableSync) {
|
||||
showBySelector('.lnkMySync', true);
|
||||
} else {
|
||||
showBySelector('.lnkMySync', false);
|
||||
}
|
||||
}
|
||||
|
||||
function onManageServerClicked() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue