2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2020-05-19 13:22:38 +00:00
|
|
|
|
2021-10-12 18:26:02 +00:00
|
|
|
import "../popups"
|
|
|
|
import "../stores"
|
|
|
|
import "../shared"
|
|
|
|
|
2020-06-12 20:47:44 +00:00
|
|
|
Item {
|
|
|
|
property var onClosed: function () {}
|
|
|
|
id: existingKeyView
|
2020-06-02 08:41:24 +00:00
|
|
|
anchors.fill: parent
|
2020-05-19 13:22:38 +00:00
|
|
|
|
2020-06-12 20:47:44 +00:00
|
|
|
Component.onCompleted: {
|
|
|
|
enterSeedPhraseModal.open()
|
2020-06-02 08:41:24 +00:00
|
|
|
}
|
2020-05-19 13:22:38 +00:00
|
|
|
|
2020-06-12 20:47:44 +00:00
|
|
|
EnterSeedPhraseModal {
|
|
|
|
property bool wentNext: false
|
|
|
|
id: enterSeedPhraseModal
|
|
|
|
onConfirmSeedClick: function (mnemonic) {
|
2021-04-14 20:50:09 +00:00
|
|
|
wentNext = true
|
|
|
|
enterSeedPhraseModal.close()
|
2021-10-12 18:26:02 +00:00
|
|
|
OnboardingStore.importMnemonic(mnemonic)
|
2021-04-14 20:50:09 +00:00
|
|
|
removeMnemonicAfterLogin = true
|
|
|
|
recoverySuccessModal.open()
|
2020-06-02 08:41:24 +00:00
|
|
|
}
|
2020-06-12 20:47:44 +00:00
|
|
|
onClosed: function () {
|
|
|
|
if (!wentNext) {
|
|
|
|
existingKeyView.onClosed()
|
2020-06-02 08:41:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-08 11:26:16 +00:00
|
|
|
MnemonicRecoverySuccessModal {
|
2021-07-07 17:44:59 +00:00
|
|
|
property bool wentNext: false
|
2020-10-08 11:26:16 +00:00
|
|
|
id: recoverySuccessModal
|
|
|
|
onButtonClicked: {
|
2021-07-07 17:44:59 +00:00
|
|
|
recoverySuccessModal.wentNext = true
|
2020-10-08 11:26:16 +00:00
|
|
|
recoverySuccessModal.close()
|
|
|
|
createPasswordModal.open()
|
|
|
|
}
|
|
|
|
onClosed: function () {
|
2021-07-07 17:44:59 +00:00
|
|
|
if (!recoverySuccessModal.wentNext) {
|
2020-10-08 11:26:16 +00:00
|
|
|
existingKeyView.onClosed()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-12 20:47:44 +00:00
|
|
|
CreatePasswordModal {
|
|
|
|
id: createPasswordModal
|
|
|
|
onClosed: function () {
|
|
|
|
existingKeyView.onClosed()
|
2020-06-02 08:41:24 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-19 13:22:38 +00:00
|
|
|
}
|