mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 20:40:18 +00:00
feat(AccountSelector): introduce accountSelected signal
This commit is contained in:
parent
d62d8b3a92
commit
c48606538f
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user