feat(HoldingsDropdown): Open list of all tokens by default when no own/community tokens
This commit is contained in:
parent
5b9017757f
commit
2f3392c7d5
|
@ -273,6 +273,22 @@ StatusDropdown {
|
||||||
type: d.extendedDropdownType
|
type: d.extendedDropdownType
|
||||||
showAllTokensMode: d.allTokensMode
|
showAllTokensMode: d.allTokensMode
|
||||||
|
|
||||||
|
Binding on showAllTokensMode {
|
||||||
|
value: true
|
||||||
|
|
||||||
|
when: d.extendedDropdownType === ExtendedDropdownContent.Type.Assets
|
||||||
|
&& root.assetsModel.rowCount() > 0
|
||||||
|
&& ModelUtils.get(root.assetsModel, 0, "category") === TokenCategories.Category.General
|
||||||
|
}
|
||||||
|
|
||||||
|
Binding on showAllTokensMode {
|
||||||
|
value: true
|
||||||
|
|
||||||
|
when: d.extendedDropdownType === ExtendedDropdownContent.Type.Collectibles
|
||||||
|
&& root.collectiblesModel.rowCount() > 0
|
||||||
|
&& ModelUtils.get(root.collectiblesModel, 0, "category") === TokenCategories.Category.General
|
||||||
|
}
|
||||||
|
|
||||||
onTypeChanged: forceActiveFocus()
|
onTypeChanged: forceActiveFocus()
|
||||||
|
|
||||||
onItemClicked: {
|
onItemClicked: {
|
||||||
|
|
Loading…
Reference in New Issue