mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-13 15:58:37 +02:00
Merge pull request #11817 from zfox23/commerce_rezFix
Fix rezzing non-JSON marketplace items
This commit is contained in:
commit
9f80a5f081
1 changed files with 4 additions and 4 deletions
|
@ -476,7 +476,9 @@ Rectangle {
|
||||||
commerce.buy(itemId, itemPrice, true);
|
commerce.buy(itemId, itemPrice, true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
sendToScript({method: 'checkout_rezClicked', itemHref: root.itemHref, isWearable: root.isWearable});
|
if (urlHandler.canHandleUrl(itemHref)) {
|
||||||
|
urlHandler.handleUrl(itemHref);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -594,9 +596,7 @@ Rectangle {
|
||||||
anchors.right: parent.right;
|
anchors.right: parent.right;
|
||||||
text: root.isWearable ? "Wear It" : "Rez It"
|
text: root.isWearable ? "Wear It" : "Rez It"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (urlHandler.canHandleUrl(root.itemHref)) {
|
sendToScript({method: 'checkout_rezClicked', itemHref: root.itemHref, isWearable: root.isWearable});
|
||||||
urlHandler.handleUrl(root.itemHref);
|
|
||||||
}
|
|
||||||
rezzedNotifContainer.visible = true;
|
rezzedNotifContainer.visible = true;
|
||||||
rezzedNotifContainerTimer.start();
|
rezzedNotifContainerTimer.start();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue