mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
649fd0000d
commit
765af7e4d8
51 changed files with 184 additions and 201 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['imageLoader', 'layoutManager', 'viewManager', 'libraryBrowser', 'apphost', 'embyRouter', 'paper-icon-button-light', 'material-icons'], function (imageLoader, layoutManager, viewManager, libraryBrowser, appHost, embyRouter) {
|
||||
define(['layoutManager', 'viewManager', 'libraryBrowser', 'embyRouter', 'paper-icon-button-light', 'material-icons'], function (layoutManager, viewManager, libraryBrowser, embyRouter) {
|
||||
'use strict';
|
||||
|
||||
var enableBottomTabs = AppInfo.isNativeApp;
|
||||
|
@ -53,12 +53,18 @@
|
|||
|
||||
document.querySelector('.skinHeader').appendChild(viewMenuBar);
|
||||
|
||||
imageLoader.lazyChildren(document.querySelector('.viewMenuBar'));
|
||||
lazyLoadViewMenuBarImages();
|
||||
|
||||
document.dispatchEvent(new CustomEvent("headercreated", {}));
|
||||
bindMenuEvents();
|
||||
}
|
||||
|
||||
function lazyLoadViewMenuBarImages() {
|
||||
require(['imageLoader'], function (imageLoader) {
|
||||
imageLoader.lazyChildren(document.querySelector('.viewMenuBar'));
|
||||
});
|
||||
}
|
||||
|
||||
function onBackClick() {
|
||||
|
||||
embyRouter.back();
|
||||
|
@ -140,13 +146,11 @@
|
|||
}
|
||||
|
||||
require(['apphost'], function (apphost) {
|
||||
|
||||
if (apphost.supports('voiceinput')) {
|
||||
header.querySelector('.headerVoiceButton').classList.remove('hide');
|
||||
} else {
|
||||
header.querySelector('.headerVoiceButton').classList.add('hide');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
} else {
|
||||
|
@ -460,11 +464,13 @@
|
|||
showBySelector('.lnkSyncToOtherDevices', false);
|
||||
}
|
||||
|
||||
if (user.Policy.EnableSync && appHost.supports('sync')) {
|
||||
showBySelector('.lnkManageOffline', true);
|
||||
} else {
|
||||
showBySelector('.lnkManageOffline', false);
|
||||
}
|
||||
require(['apphost'], function (appHost) {
|
||||
if (user.Policy.EnableSync && appHost.supports('sync')) {
|
||||
showBySelector('.lnkManageOffline', true);
|
||||
} else {
|
||||
showBySelector('.lnkManageOffline', false);
|
||||
}
|
||||
});
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue