fix(StatusStickerPackClickPopup): fix passing/parsing price

when trying to buy a sticker pack
This commit is contained in:
Lukáš Tinkl 2023-04-12 14:59:39 +02:00 committed by Lukáš Tinkl
parent bfe44ca4a8
commit 05e5b3dad6
2 changed files with 6 additions and 3 deletions

View File

@ -147,7 +147,7 @@ Item {
onCancelClicked: root.cancelClicked(packId)
onUpdateClicked: root.updateClicked(packId)
onBuyClicked: {
Global.openPopup(stickerPackPurchaseModal)
Global.openPopup(stickerPackPurchaseModal, {price})
root.buyClicked(packId)
}
}
@ -180,7 +180,7 @@ Item {
onCancelClicked: root.cancelClicked(packId)
onUpdateClicked: root.updateClicked(packId)
onBuyClicked: {
Global.openPopup(stickerPackPurchaseModal)
Global.openPopup(stickerPackPurchaseModal, {price})
root.buyClicked(packId)
}
}
@ -193,6 +193,9 @@ Item {
id: stickerPackPurchaseModal
SendModal {
id: buyStickersModal
required property int price
interactive: false
sendType: Constants.SendType.StickersBuy
preSelectedRecipient: root.store.stickersStore.getStickersMarketAddress()

View File

@ -24,7 +24,7 @@ ModalPopup {
property string thumbnail: ""
property string name: ""
property string author: ""
property string price: ""
property int price
property bool installed: false;
property bool bought: false;
property bool pending: false;