opens selected object but is grayed out on no selection which is weird since it's valid

This commit is contained in:
2020-03-24 19:40:30 +00:00
parent c84ab80477
commit 07c6d54c0b

View File

@@ -182,7 +182,14 @@ export default {
}); });
}, },
handleEditClick: function() { handleEditClick: function() {
console.log("Edit click", this.lastSelection); var idToOpen = 0;
if (this.lastSelection != null && this.lastSelection.id) {
idToOpen = this.lastSelection.id;
}
window.$gz.eventBus.$emit("openobject", {
type: this.ayaType,
id: idToOpen
});
}, },
selectionMade(e) { selectionMade(e) {
this.clearErrors(); this.clearErrors();