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

@@ -95,7 +95,7 @@ export default {
// console.log("STUB: created: has value, sb fetched");
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
vm.getList(urlParams);
}
}
},
data() {
return {
@@ -182,7 +182,14 @@ export default {
});
},
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) {
this.clearErrors();