status-desktop/ui/onboarding/ExistingKey.qml

48 lines
988 B
QML

import QtQuick 2.3
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.11
import QtQuick.Window 2.11
import QtQuick.Dialogs 1.3
import "../shared"
import "../imports"
import "."
Item {
property var onClosed: function () {}
id: existingKeyView
anchors.fill: parent
Component.onCompleted: {
enterSeedPhraseModal.open()
}
EnterSeedPhraseModal {
property bool wentNext: false
id: enterSeedPhraseModal
onConfirmSeedClick: function (mnemonic) {
wentNext = true
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}
}
##^##*/