fix(StatusStickerPackClickPopup): fix passing/parsing price
when trying to buy a sticker pack
This commit is contained in:
parent
bfe44ca4a8
commit
05e5b3dad6
|
@ -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()
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue