fix(@onboarding): back button on seed phrase

This commit is contained in:
Anthony Laibe 2022-05-05 12:49:19 +02:00 committed by Iuri Matias
parent f0f0b47d9c
commit d87e03e969
1 changed files with 11 additions and 1 deletions

View File

@ -83,6 +83,12 @@ QtObject {
signal: Global.applicationWindow.navigateTo
guard: path === "LogIn"
}
DSM.SignalTransition {
targetState: importSeedState
signal: Global.applicationWindow.navigateTo
guard: path === "ImportSeed"
}
}
DSM.State {
@ -219,6 +225,7 @@ QtObject {
}
}
onSeedValidated: {
root.keysMainSetState = "importseed";
Global.applicationWindow.navigateTo("GenKey");
}
}
@ -228,7 +235,10 @@ QtObject {
id: genKey
GenKeyView {
onExit: {
if (LoginStore.currentAccount.username !== "") {
if (root.keysMainSetState === "importseed") {
root.keysMainSetState = "connectkeys"
Global.applicationWindow.navigateTo("ImportSeed");
} else if (LoginStore.currentAccount.username !== "") {
Global.applicationWindow.navigateTo("LogIn");
} else {
Global.applicationWindow.navigateTo("KeysMain");