2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2020-07-27 11:11:24 -04:00
|
|
|
import "../imports"
|
2020-05-19 23:22:38 +10:00
|
|
|
|
2020-06-12 16:47:44 -04:00
|
|
|
Item {
|
|
|
|
property var onClosed: function () {}
|
|
|
|
id: existingKeyView
|
2020-06-02 18:41:24 +10:00
|
|
|
anchors.fill: parent
|
2020-05-19 23:22:38 +10:00
|
|
|
|
2020-06-12 16:47:44 -04:00
|
|
|
Component.onCompleted: {
|
|
|
|
enterSeedPhraseModal.open()
|
2020-06-02 18:41:24 +10:00
|
|
|
}
|
2020-05-19 23:22:38 +10:00
|
|
|
|
2020-06-12 16:47:44 -04:00
|
|
|
EnterSeedPhraseModal {
|
|
|
|
property bool wentNext: false
|
|
|
|
id: enterSeedPhraseModal
|
|
|
|
onConfirmSeedClick: function (mnemonic) {
|
2021-04-14 16:50:09 -04:00
|
|
|
wentNext = true
|
|
|
|
enterSeedPhraseModal.close()
|
|
|
|
onboardingModel.importMnemonic(mnemonic)
|
|
|
|
removeMnemonicAfterLogin = true
|
|
|
|
recoverySuccessModal.open()
|
2020-06-02 18:41:24 +10:00
|
|
|
}
|
2020-06-12 16:47:44 -04:00
|
|
|
onClosed: function () {
|
|
|
|
if (!wentNext) {
|
|
|
|
existingKeyView.onClosed()
|
2020-06-02 18:41:24 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-08 13:26:16 +02:00
|
|
|
MnemonicRecoverySuccessModal {
|
|
|
|
id: recoverySuccessModal
|
|
|
|
onButtonClicked: {
|
|
|
|
recoverySuccessModal.close()
|
|
|
|
createPasswordModal.open()
|
|
|
|
}
|
|
|
|
onClosed: function () {
|
|
|
|
if (!enterSeedPhraseModal.wentNext) {
|
|
|
|
existingKeyView.onClosed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-12 16:47:44 -04:00
|
|
|
CreatePasswordModal {
|
|
|
|
id: createPasswordModal
|
|
|
|
onClosed: function () {
|
|
|
|
existingKeyView.onClosed()
|
2020-06-02 18:41:24 +10:00
|
|
|
}
|
|
|
|
}
|
2020-05-19 23:22:38 +10:00
|
|
|
}
|
2020-06-02 18:41:24 +10:00
|
|
|
|
2020-05-19 23:22:38 +10:00
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|