mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-08 04:34:01 +00:00
4ee21ada05
Introduced Style.svg() Style.png() Style.emoji() and Style.icon() in Style.qml. Those should be used to set the source in Images instead of using relative paths. Usage: Image { source: Style.svg("check) .... Also moved all Singletons inside a new "utils" folder and made it a QML module, to use import utils 1.0 instead of relative paths Closes #3678
60 lines
1.4 KiB
QML
60 lines
1.4 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
|
|
import utils 1.0
|
|
|
|
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
|
|
enterSeedPhraseModal.close()
|
|
onboardingModel.importMnemonic(mnemonic)
|
|
removeMnemonicAfterLogin = true
|
|
recoverySuccessModal.open()
|
|
}
|
|
onClosed: function () {
|
|
if (!wentNext) {
|
|
existingKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
|
|
MnemonicRecoverySuccessModal {
|
|
property bool wentNext: false
|
|
id: recoverySuccessModal
|
|
onButtonClicked: {
|
|
recoverySuccessModal.wentNext = true
|
|
recoverySuccessModal.close()
|
|
createPasswordModal.open()
|
|
}
|
|
onClosed: function () {
|
|
if (!recoverySuccessModal.wentNext) {
|
|
existingKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
|
|
CreatePasswordModal {
|
|
id: createPasswordModal
|
|
onClosed: function () {
|
|
existingKeyView.onClosed()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|