diff --git a/ayanova/src/components/pick-list.vue b/ayanova/src/components/pick-list.vue index 7bc6dfc1..073dff81 100644 --- a/ayanova/src/components/pick-list.vue +++ b/ayanova/src/components/pick-list.vue @@ -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();