fix icons; add slot for checking if an asset is currently added

This commit is contained in:
Iuri Matias 2020-06-03 14:21:05 -04:00
parent a9844099bb
commit ca82c9d5b2
2 changed files with 164 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Item {
id: assetInfoImage id: assetInfoImage
width: 36 width: 36
height: 36 height: 36
source: "../../../img/tokens/" + symbol + ".png" source: hasIcon ? "../../../img/tokens/" + symbol + ".png" : "../../../img/tokens/0-native.png"
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 0 anchors.leftMargin: 0
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -102,7 +102,7 @@ Item {
} }
CheckBox { CheckBox {
id: assetCheck id: assetCheck
checked: false //walletModel.hasAsset("0x123", symbol) checked: walletModel.hasAsset("0x123", symbol)
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: 10 anchors.rightMargin: 10
} }

File diff suppressed because it is too large Load Diff