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,6 +90,41 @@ Rectangle {
|
||||||
anchors.rightMargin: Style.current.padding
|
anchors.rightMargin: Style.current.padding
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: balance
|
||||||
|
StatusBaseText {
|
||||||
|
|
||||||
|
text: {
|
||||||
|
return LocaleUtils.currencyAmountToLocaleString({
|
||||||
|
amount: parseFloat(model.account.balance),
|
||||||
|
symbol: SharedStore.RootStore.currencyStore.currentCurrencySymbol,
|
||||||
|
displayDecimals: 2})
|
||||||
|
}
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
font.pixelSize: Constants.keycard.general.fontSize2
|
||||||
|
color: Theme.palette.baseColor1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: fetchingBalance
|
||||||
|
StatusLoadingIndicator {
|
||||||
|
width: 12
|
||||||
|
height: 12
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: path
|
||||||
|
StatusBaseText {
|
||||||
|
text: model.account.path
|
||||||
|
wrapMode: Text.WordWrap
|
||||||
|
font.pixelSize: Constants.keycard.general.fontSize2
|
||||||
|
color: Theme.palette.baseColor1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
padding: 0
|
padding: 0
|
||||||
|
@ -113,11 +148,9 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusBaseText {
|
Loader {
|
||||||
text: model.account.path
|
active: Global.appIsReady
|
||||||
wrapMode: Text.WordWrap
|
sourceComponent: path
|
||||||
font.pixelSize: Constants.keycard.general.fontSize2
|
|
||||||
color: Theme.palette.baseColor1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -126,34 +159,11 @@ Rectangle {
|
||||||
Layout.preferredHeight: parent.height
|
Layout.preferredHeight: parent.height
|
||||||
}
|
}
|
||||||
|
|
||||||
Component {
|
|
||||||
id: balance
|
|
||||||
StatusBaseText {
|
|
||||||
|
|
||||||
text: {
|
|
||||||
return LocaleUtils.currencyAmountToLocaleString({
|
|
||||||
amount: parseFloat(model.account.balance),
|
|
||||||
symbol: SharedStore.RootStore.currencyStore.currentCurrencySymbol,
|
|
||||||
displayDecimals: 2})
|
|
||||||
}
|
|
||||||
wrapMode: Text.WordWrap
|
|
||||||
font.pixelSize: Constants.keycard.general.fontSize2
|
|
||||||
color: Theme.palette.baseColor1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Component {
|
|
||||||
id: fetchingBalance
|
|
||||||
StatusLoadingIndicator {
|
|
||||||
width: 12
|
|
||||||
height: 12
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: fetchLoaderIndicator
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
sourceComponent: model.account.balanceFetched? balance : fetchingBalance
|
sourceComponent: Global.appIsReady?
|
||||||
|
(model.account.balanceFetched? balance : fetchingBalance)
|
||||||
|
: path
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue