mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 23:09:52 +02:00
Update right-click menu to look for marketplaceID
This commit is contained in:
parent
81cb1e98ba
commit
1bdfa3abb5
1 changed files with 2 additions and 7 deletions
|
@ -718,13 +718,8 @@ function mouseClickEvent(event) {
|
||||||
var result = findClickedEntity(event);
|
var result = findClickedEntity(event);
|
||||||
if (result) {
|
if (result) {
|
||||||
var properties = Entities.getEntityProperties(result.entityID);
|
var properties = Entities.getEntityProperties(result.entityID);
|
||||||
var data = {};
|
if (properties.marketplaceID) {
|
||||||
try {
|
propertyMenu.marketplaceID = properties.marketplaceID;
|
||||||
data = JSON.parse(properties.attribution);
|
|
||||||
} catch (e) {
|
|
||||||
}
|
|
||||||
if (data.marketplaceID) {
|
|
||||||
propertyMenu.marketplaceID = data.marketplaceID;
|
|
||||||
propertyMenu.updateMenuItemText(showMenuItem, "Show in Marketplace");
|
propertyMenu.updateMenuItemText(showMenuItem, "Show in Marketplace");
|
||||||
} else {
|
} else {
|
||||||
propertyMenu.marketplaceID = null;
|
propertyMenu.marketplaceID = null;
|
||||||
|
|
Loading…
Reference in a new issue