diff --git a/src/components/apphost.js b/src/components/apphost.js index 053b846374..6afe6dc8f3 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -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;