mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-04 10:44:23 +00:00
1d2774283f
Update StatusRoundButton colours to support a "tertiary" style (background and icon color overlay), as well as tertiary hover colour. Fix the modal header close button so that it more closely matches the design. Replace the buttons in the onboarding modals with StatusRoundButtons were possible.
55 lines
1.2 KiB
QML
55 lines
1.2 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import "../imports"
|
|
|
|
Item {
|
|
property var onClosed: function () {}
|
|
id: existingKeyView
|
|
anchors.fill: parent
|
|
|
|
Component.onCompleted: {
|
|
enterSeedPhraseModal.open()
|
|
}
|
|
|
|
EnterSeedPhraseModal {
|
|
property bool wentNext: false
|
|
id: enterSeedPhraseModal
|
|
onConfirmSeedClick: function (mnemonic) {
|
|
error = "";
|
|
|
|
if(!Utils.isMnemonic(mnemonic)){
|
|
error = qsTr("Invalid seed phrase")
|
|
} else {
|
|
error = onboardingModel.validateMnemonic(mnemonic)
|
|
}
|
|
|
|
if (error != "") {
|
|
errorSound.play()
|
|
} else {
|
|
wentNext = true
|
|
enterSeedPhraseModal.close()
|
|
onboardingModel.importMnemonic(mnemonic)
|
|
createPasswordModal.open()
|
|
}
|
|
}
|
|
onClosed: function () {
|
|
if (!wentNext) {
|
|
existingKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
|
|
CreatePasswordModal {
|
|
id: createPasswordModal
|
|
onClosed: function () {
|
|
existingKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|