mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add auto-cast feature.
This commit is contained in:
parent
f31801c85b
commit
e9caf5e336
6 changed files with 81 additions and 0 deletions
|
@ -52,6 +52,7 @@ import 'flexStyles';
|
|||
|
||||
lazyLoadViewMenuBarImages();
|
||||
bindMenuEvents();
|
||||
updateCastIcon();
|
||||
}
|
||||
|
||||
function getCurrentApiClient() {
|
||||
|
@ -910,6 +911,12 @@ import 'flexStyles';
|
|||
}
|
||||
}
|
||||
|
||||
function ensureHeader() {
|
||||
return new Promise(function (resolve) {
|
||||
window.connectionManager.user(getCurrentApiClient()).then(updateUserInHeader).then(resolve);
|
||||
});
|
||||
}
|
||||
|
||||
let currentPageType;
|
||||
pageClassOn('pagebeforeshow', 'page', function (e) {
|
||||
if (!this.classList.contains('withTabs')) {
|
||||
|
@ -996,6 +1003,7 @@ import 'flexStyles';
|
|||
};
|
||||
|
||||
window.LibraryMenu = LibraryMenu;
|
||||
renderHeader();
|
||||
|
||||
export default LibraryMenu;
|
||||
|
||||
|
|
|
@ -591,6 +591,7 @@ function initClient() {
|
|||
define('metadataEditor', [componentsPath + '/metadataEditor/metadataEditor'], returnFirstDependency);
|
||||
define('personEditor', [componentsPath + '/metadataEditor/personEditor'], returnFirstDependency);
|
||||
define('playerSelectionMenu', [componentsPath + '/playback/playerSelectionMenu'], returnFirstDependency);
|
||||
define('autocast', [componentsPath + '/autocast'], returnFirstDependency);
|
||||
define('playerSettingsMenu', [componentsPath + '/playback/playersettingsmenu'], returnFirstDependency);
|
||||
define('playMethodHelper', [componentsPath + '/playback/playmethodhelper'], returnFirstDependency);
|
||||
define('brightnessOsd', [componentsPath + '/playback/brightnessosd'], returnFirstDependency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue