mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 11:50:45 +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);
|
||||
if (result) {
|
||||
var properties = Entities.getEntityProperties(result.entityID);
|
||||
var data = {};
|
||||
try {
|
||||
data = JSON.parse(properties.attribution);
|
||||
} catch (e) {
|
||||
}
|
||||
if (data.marketplaceID) {
|
||||
propertyMenu.marketplaceID = data.marketplaceID;
|
||||
if (properties.marketplaceID) {
|
||||
propertyMenu.marketplaceID = properties.marketplaceID;
|
||||
propertyMenu.updateMenuItemText(showMenuItem, "Show in Marketplace");
|
||||
} else {
|
||||
propertyMenu.marketplaceID = null;
|
||||
|
|
Loading…
Reference in a new issue