mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added exit app event handling to library menu
This commit is contained in:
parent
2fc99360bd
commit
d1d4ff865d
1 changed files with 9 additions and 0 deletions
|
@ -323,6 +323,11 @@ import Headroom from 'headroom.js';
|
|||
btnSettings.addEventListener('click', onSettingsClick);
|
||||
}
|
||||
|
||||
const btnExit = navDrawerScrollContainer.querySelector('.exitApp');
|
||||
if (btnExit) {
|
||||
btnExit.addEventListener('click', onExitAppClick);
|
||||
}
|
||||
|
||||
const btnLogout = navDrawerScrollContainer.querySelector('.btnLogout');
|
||||
if (btnLogout) {
|
||||
btnLogout.addEventListener('click', onLogoutClick);
|
||||
|
@ -711,6 +716,10 @@ import Headroom from 'headroom.js';
|
|||
Dashboard.navigate('mypreferencesmenu.html');
|
||||
}
|
||||
|
||||
function onExitAppClick() {
|
||||
appHost.exit();
|
||||
}
|
||||
|
||||
function onLogoutClick() {
|
||||
Dashboard.logout();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue