20import Lomiri.Components 1.3
21import Dekko.Mail.Accounts 1.0
22import Dekko.Mail.API 1.0
23import Dekko.Mail.Stores.Views 1.0
24import Dekko.Mail.Stores.Settings 1.0
25import Dekko.Lomiri.Components 1.0
29 pageHeader.backAction: settingsStage.viewState.isSmallFF ? bk : null
34 SettingsActions.saveCurrentGroup()
35 ViewActions.popStageArea(ViewKeys.settingsStack1)
39 property Account account: SettingsStore.selectedAccount
42 target: settingsStage.viewState
44 if ((!settingsStage.viewState.isSmallFF) && (stageArea.stageID === ViewKeys.settingsStack1)) {
45 SettingsActions.switchSettingsGroupLocation(ViewKeys.settingsStack1)
46 }
else if ((settingsStage.viewState.isSmallFF) && (stageArea.stageID === ViewKeys.settingsStack2)) {
47 SettingsActions.switchSettingsGroupLocation(ViewKeys.settingsStack2)