mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Added exit app event handling to library menu
This commit is contained in:
parent
2fc99360bd
commit
d1d4ff865d
@ -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…
Reference in New Issue
Block a user