feat(savedaddresses): context menu - show address qr

Part 2 of #13094
This commit is contained in:
Sale Djenic 2024-01-15 10:20:52 +01:00 committed by saledjenic
parent e115d5e7ce
commit 3399148f61
1 changed files with 12 additions and 1 deletions

View File

@ -12,6 +12,7 @@ import shared.controls 1.0
import "../popups" import "../popups"
import "../controls" import "../controls"
import "../stores"
import ".." import ".."
StatusListItem { StatusListItem {
@ -160,7 +161,17 @@ StatusListItem {
objectName: "showQrSavedAddressAction" objectName: "showQrSavedAddressAction"
assetSettings.name: "qr" assetSettings.name: "qr"
onTriggered: { onTriggered: {
console.warn("TODO: open qr popup...") Global.openShowQRPopup({
showSingleAccount: true,
showForSavedAddress: true,
switchingAccounsEnabled: false,
changingPreferredChainsEnabled: true,
hasFloatingButtons: true,
name: menu.name,
address: menu.address,
colorId: menu.colorId,
preferredSharingChainIds: RootStore.getNetworkIds(menu.chainShortNames)
})
} }
} }
StatusMenuSeparator { } StatusMenuSeparator { }