mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add logout to exit menu
This commit is contained in:
parent
2933dd5fa1
commit
0a42aa1913
1 changed files with 5 additions and 0 deletions
|
@ -308,12 +308,17 @@ function askForExit() {
|
|||
exitPromise = actionsheet.show({
|
||||
title: globalize.translate('MessageConfirmAppExit'),
|
||||
items: [
|
||||
{ id: 'logout', name: globalize.translate('ButtonSignOut') },
|
||||
{ id: 'yes', name: globalize.translate('Yes') },
|
||||
{ id: 'no', name: globalize.translate('No') }
|
||||
]
|
||||
}).then(function (value) {
|
||||
if (value === 'yes') {
|
||||
doExit();
|
||||
} else if (value === 'logout') {
|
||||
import('../scripts/clientUtils').then((clientUtils) => {
|
||||
Dashboard.logout();
|
||||
});
|
||||
}
|
||||
}).finally(function () {
|
||||
exitPromise = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue