feat(keycard): remove balance from factory reset flow if user is not logged in
Closes: #9633
This commit is contained in:
parent
d6467923e4
commit
3441c2e182
|
@ -90,41 +90,6 @@ Rectangle {
|
|||
anchors.rightMargin: Style.current.padding
|
||||
|
||||
ColumnLayout {
|
||||
Row {
|
||||
spacing: 0
|
||||
padding: 0
|
||||
StatusBaseText {
|
||||
id: address
|
||||
text: StatusQUtils.Utils.elideText(model.account.address, 6, 4)
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Constants.keycard.general.fontSize2
|
||||
color: Theme.palette.directColor1
|
||||
}
|
||||
|
||||
StatusFlatRoundButton {
|
||||
height: 20
|
||||
width: 20
|
||||
icon.name: "external"
|
||||
icon.width: 16
|
||||
icon.height: 16
|
||||
onClicked: {
|
||||
Qt.openUrlExternally("https://etherscan.io/address/%1".arg(model.account.address))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
text: model.account.path
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Constants.keycard.general.fontSize2
|
||||
color: Theme.palette.baseColor1
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: parent.height
|
||||
}
|
||||
|
||||
Component {
|
||||
id: balance
|
||||
|
@ -150,10 +115,55 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: path
|
||||
StatusBaseText {
|
||||
text: model.account.path
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Constants.keycard.general.fontSize2
|
||||
color: Theme.palette.baseColor1
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
spacing: 0
|
||||
padding: 0
|
||||
StatusBaseText {
|
||||
id: address
|
||||
text: StatusQUtils.Utils.elideText(model.account.address, 6, 4)
|
||||
wrapMode: Text.WordWrap
|
||||
font.pixelSize: Constants.keycard.general.fontSize2
|
||||
color: Theme.palette.directColor1
|
||||
}
|
||||
|
||||
StatusFlatRoundButton {
|
||||
height: 20
|
||||
width: 20
|
||||
icon.name: "external"
|
||||
icon.width: 16
|
||||
icon.height: 16
|
||||
onClicked: {
|
||||
Qt.openUrlExternally("https://etherscan.io/address/%1".arg(model.account.address))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: Global.appIsReady
|
||||
sourceComponent: path
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: parent.height
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: fetchLoaderIndicator
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
sourceComponent: model.account.balanceFetched? balance : fetchingBalance
|
||||
sourceComponent: Global.appIsReady?
|
||||
(model.account.balanceFetched? balance : fetchingBalance)
|
||||
: path
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue