2020-10-22 15:29:05 +00:00
|
|
|
|
import QtQuick 2.13
|
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
|
import QtQuick.Layouts 1.13
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-18 10:53:06 +00:00
|
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
|
import StatusQ.Core.Theme 0.1
|
2020-10-22 15:29:05 +00:00
|
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
id: root
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
spacing: 5
|
|
|
|
|
|
|
|
|
|
visible: !isValid || isWarn
|
|
|
|
|
|
|
|
|
|
property bool isValid: true
|
|
|
|
|
property bool isWarn: address == Constants.zeroAddress
|
|
|
|
|
property alias errorMessage: txtValidationError.text
|
|
|
|
|
property string address: ""
|
|
|
|
|
|
2021-10-18 10:53:06 +00:00
|
|
|
|
StatusIcon {
|
2020-10-22 15:29:05 +00:00
|
|
|
|
width: 13.33
|
|
|
|
|
height: 13.33
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2021-10-18 10:53:06 +00:00
|
|
|
|
icon: "warning"
|
|
|
|
|
color: Theme.palette.dangerColor1
|
2020-10-22 15:29:05 +00:00
|
|
|
|
}
|
2021-10-18 10:53:06 +00:00
|
|
|
|
|
|
|
|
|
StatusBaseText {
|
2020-10-22 15:29:05 +00:00
|
|
|
|
id: txtValidationError
|
2022-04-04 11:26:30 +00:00
|
|
|
|
text: qsTr("You need to request the recipient’s address first.\nAssets won’t be sent yet.")
|
2020-10-22 15:29:05 +00:00
|
|
|
|
verticalAlignment: Text.AlignVCenter
|
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
|
wrapMode: Text.WordWrap
|
|
|
|
|
font.pixelSize: 13
|
|
|
|
|
height: 18
|
2021-10-18 10:53:06 +00:00
|
|
|
|
color: Theme.palette.dangerColor1
|
2020-10-22 15:29:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|