mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-31 00:36:19 +00:00
fix(StatusAccountSelector): Adapt ui to data model changed
This commit is contained in:
parent
375c76ca1d
commit
d18dfdec03
@ -46,7 +46,7 @@ Item {
|
|||||||
if (showBalanceForAssetSymbol == "" || minRequiredAssetBalance == 0 || !assetFound) {
|
if (showBalanceForAssetSymbol == "" || minRequiredAssetBalance == 0 || !assetFound) {
|
||||||
return root.isValid
|
return root.isValid
|
||||||
}
|
}
|
||||||
root.isValid = assetFound.value >= minRequiredAssetBalance
|
root.isValid = assetFound.balance >= minRequiredAssetBalance
|
||||||
return root.isValid
|
return root.isValid
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ Item {
|
|||||||
if (!assetFound) {
|
if (!assetFound) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
txtAssetBalance.text = root.assetBalanceTextFn(assetFound.value)
|
txtAssetBalance.text = root.assetBalanceTextFn(assetFound.balance)
|
||||||
txtAssetSymbol.text = " " + assetFound.symbol
|
txtAssetSymbol.text = " " + assetFound.symbol
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,10 +52,9 @@ QtObject {
|
|||||||
return {
|
return {
|
||||||
name: assets.rowData(i, "name"),
|
name: assets.rowData(i, "name"),
|
||||||
symbol,
|
symbol,
|
||||||
value: assets.rowData(i, "value"),
|
balance: assets.rowData(i, "balance"),
|
||||||
fiatBalanceDisplay: assets.rowData(i, "fiatBalanceDisplay"),
|
|
||||||
address: assets.rowData(i, "address"),
|
address: assets.rowData(i, "address"),
|
||||||
fiatBalance: assets.rowData(i, "fiatBalance")
|
currencyBalance: assets.rowData(i, "currencyBalance")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user