Skip to content

Commit

Permalink
fix(Onboarding): fix seedphrase page title
Browse files Browse the repository at this point in the history
- make a difference between "Create profile..." and "Login with..."

Fixes: #17109
  • Loading branch information
caybro committed Jan 21, 2025
1 parent 8712ca6 commit a262047
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ui/app/AppLayouts/Onboarding2/OnboardingFlow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SQUtils.QObject {
onCreateProfileWithPasswordRequested: createNewProfileFlow.init()
onCreateProfileWithSeedphraseRequested: {
d.flow = Onboarding.SecondaryFlow.CreateProfileWithSeedphrase
useRecoveryPhraseFlow.init()
useRecoveryPhraseFlow.init(d.flow)
}
onCreateProfileWithEmptyKeycardRequested: keycardCreateProfileFlow.init()
}
Expand All @@ -134,7 +134,7 @@ SQUtils.QObject {

onLoginWithSeedphraseRequested: {
d.flow = Onboarding.SecondaryFlow.LoginWithSeedphrase
useRecoveryPhraseFlow.init()
useRecoveryPhraseFlow.init(d.flow)
}
}
}
Expand Down Expand Up @@ -216,7 +216,7 @@ SQUtils.QObject {

onLoginWithSeedphraseRequested: {
d.flow = Onboarding.SecondaryFlow.LoginWithSeedphrase
useRecoveryPhraseFlow.init()
useRecoveryPhraseFlow.init(d.flow)
}

onFinished: {
Expand Down
8 changes: 4 additions & 4 deletions ui/app/AppLayouts/Onboarding2/UseRecoveryPhraseFlow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import QtQuick.Controls 2.15
import StatusQ.Core.Utils 0.1 as SQUtils

import AppLayouts.Onboarding2.pages 1.0

import AppLayouts.Onboarding.enums 1.0

SQUtils.QObject {
id: root
Expand All @@ -18,15 +18,15 @@ SQUtils.QObject {
signal setPasswordRequested(string password)
signal finished

function init() {
root.stackView.push(seedphrasePage)
function init(flow: int) {
root.stackView.push(seedphrasePage, {title: flow === Onboarding.SecondaryFlow.LoginWithSeedphrase ? qsTr("Log in with your Status recovery phrase")
: qsTr("Create profile using a recovery phrase")})
}

Component {
id: seedphrasePage

SeedphrasePage {
title: qsTr("Create profile using a recovery phrase")
isSeedPhraseValid: root.isSeedPhraseValid

onSeedphraseSubmitted: (seedphrase) => {
Expand Down

0 comments on commit a262047

Please sign in to comment.