feat(AccountSelector): introduce accountSelected signal

This commit is contained in:
Pascal Precht 2020-08-06 13:24:59 +02:00 committed by Iuri Matias
parent d62d8b3a92
commit c48606538f
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ Item {
// NOTE: if this asset is not selected as a wallet token in the UI, then
// nothing will be displayed
property string showAssetBalance: ""
signal accountSelected(var selectedAccount, int index)
Repeater {
visible: showAssetBalance !== ""
@ -207,6 +208,7 @@ Item {
anchors.fill: itemContainer
onClicked: {
root.selectedAccount = { address, name, iconColor, assets, fiatBalance }
root.accountSelected(root.selectedAccount, index)
select.menu.close()
}
}