19import QtQml.StateMachine 1.0 as DSM
21import Dekko.Mail.API 1.0
22import Dekko.Mail.Stores.Accounts 1.0
27 property alias backTargetState: backTransition.targetState
28 property alias nextTargetState: nextTransition.targetState
31 Log.logStatus("NewAccountState::onEntered",
"State entered")
33 Log.logInfo(
"NewAccountState::onEntered",
"Pushing NewAccountsUI")
34 WizardActions.wizardNavigateTo(Qt.resolvedUrl(
"../components/NewAccountsUI.qml"), {})
37 Log.logInfo(
"NewAccountState::onEntered",
"Resetting account as user navigated back")
38 WizardActions.removeNewAccount()
39 WizardActions.wizardResetAccount()
44 Log.logInfo(
"NewAccountState::onExited",
"Exited state")
47 DSM.SignalTransition {
49 signal: AccountSetup.goNext
52 DSM.SignalTransition {
54 signal: AccountSetup.goBack
59 readonly
property bool shouldPush: stack.currentItem === null || stack.currentItem.objectName !==
"newAccountUI"