opens selected object but is grayed out on no selection which is weird since it's valid
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user