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");
|
// console.log("STUB: created: has value, sb fetched");
|
||||||
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
|
var urlParams = "?ayaType=" + vm.ayaType + "&preId=" + vm.value;
|
||||||
vm.getList(urlParams);
|
vm.getList(urlParams);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user