From 07c6d54c0b2f4b2b47f664959d733a8d77aaad96 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 24 Mar 2020 19:40:30 +0000 Subject: [PATCH] opens selected object but is grayed out on no selection which is weird since it's valid --- ayanova/src/components/pick-list.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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();