Skip to content

Commit

Permalink
Add logout to exit menu
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMagus committed Mar 9, 2024
1 parent 2933dd5 commit 0a42aa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/apphost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0a42aa1

Please sign in to comment.