|
|
|
@ -42,15 +42,17 @@ Item {
|
|
|
|
|
|
|
|
|
|
property alias password: passwordInput.text
|
|
|
|
|
property string walletName
|
|
|
|
|
property string errorText
|
|
|
|
|
|
|
|
|
|
// same signals as Dialog has
|
|
|
|
|
signal accepted()
|
|
|
|
|
signal rejected()
|
|
|
|
|
signal closeCallback()
|
|
|
|
|
|
|
|
|
|
function open(walletName) {
|
|
|
|
|
function open(walletName, errorText) {
|
|
|
|
|
inactiveOverlay.visible = true // draw appwindow inactive
|
|
|
|
|
root.walletName = walletName ? walletName : ""
|
|
|
|
|
root.errorText = errorText ? errorText : "";
|
|
|
|
|
leftPanel.enabled = false
|
|
|
|
|
middlePanel.enabled = false
|
|
|
|
|
titleBar.enabled = false
|
|
|
|
@ -60,6 +62,10 @@ Item {
|
|
|
|
|
passwordInput.text = ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showError(errorText) {
|
|
|
|
|
open(root.walletName, errorText);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function close() {
|
|
|
|
|
inactiveOverlay.visible = false
|
|
|
|
|
leftPanel.enabled = true
|
|
|
|
@ -93,6 +99,18 @@ Item {
|
|
|
|
|
color: MoneroComponents.Style.defaultFontColor
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
text: root.errorText
|
|
|
|
|
visible: root.errorText
|
|
|
|
|
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
color: MoneroComponents.Style.errorColor
|
|
|
|
|
font.pixelSize: 16 * scaleRatio
|
|
|
|
|
font.family: MoneroComponents.Style.fontLight.name
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
wrapMode: Text.Wrap
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TextField {
|
|
|
|
|
id : passwordInput
|
|
|
|
|
Layout.topMargin: 6
|
|
|
|
|