diff --git a/ayanova/src/components/gz-data-table.vue b/ayanova/src/components/gz-data-table.vue index 1b149781..9bc54d3f 100644 --- a/ayanova/src/components/gz-data-table.vue +++ b/ayanova/src/components/gz-data-table.vue @@ -361,6 +361,16 @@ export default { //so, to be more efficient for now will just send the ID's until I see a need for other shit this.$emit("update:selected", window.$gz._.map(this.selected, "id")); }, + editListView() { + // path: "/ay-data-list-view/:listViewId/:dataListKey", + this.$router.push({ + name: "ay-data-list-view", + params: { + listViewId: this.currentListViewId, + dataListKey: this.dataListKey + } + }); + }, btnClick(key, i) { //translate key to actual object type from header data diff --git a/ayanova/src/router.js b/ayanova/src/router.js index 26c32bb9..17aff44b 100644 --- a/ayanova/src/router.js +++ b/ayanova/src/router.js @@ -401,7 +401,7 @@ export default new Router({ import(/* webpackChunkName: "ay" */ "./views/ay-customize.vue") }, { - path: "/ay-data-list-view/:listviewid/:dataListKey", + path: "/ay-data-list-view/:listViewId/:dataListKey", name: "ay-data-list-view", component: () => import(/* webpackChunkName: "ay" */ "./views/ay-data-list-view.vue") diff --git a/ayanova/src/views/ay-data-list-view.vue b/ayanova/src/views/ay-data-list-view.vue index 46dccfe5..1e4bc2c8 100644 --- a/ayanova/src/views/ay-data-list-view.vue +++ b/ayanova/src/views/ay-data-list-view.vue @@ -114,9 +114,10 @@ export default { initForm(vm) .then(() => { + // path: "/ay-data-list-view/:listViewId/:dataListKey", vm.formState.ready = true; vm.dataListKey = this.$route.params.dataListKey; - vm.recordid = this.$route.params.recordid; + vm.listViewId = this.$route.params.listViewId; window.$gz.eventBus.$on("menu-click", clickHandler); //NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here //modify the menu as necessary @@ -141,7 +142,7 @@ export default { data() { return { obj: [], - recordid: null, + listViewId: null, dataListKey: null, concurrencyToken: undefined, formCustomTemplateKey: this.$route.params.formCustomTemplateKey, diff --git a/ayanova/src/views/test-widgets.vue b/ayanova/src/views/test-widgets.vue index 50c20641..753d6f6c 100644 --- a/ayanova/src/views/test-widgets.vue +++ b/ayanova/src/views/test-widgets.vue @@ -24,15 +24,7 @@ export default { icon: "vial", title: window.$gz.locale.get("WidgetList"), helpUrl: "form-ay-data-list-view", - menuItems: [ - { - title: window.$gz.locale.get("DataListView"), - icon: "filter", - surface: true, - key: FORM_KEY + ":listview", - vm: this - } - ] + menuItems: [] }); }, created() { @@ -66,16 +58,6 @@ function clickHandler(menuItem) { var m = window.$gz.menu.parseMenuItem(menuItem); if (m.owner == FORM_KEY && !m.disabled) { switch (m.key) { - case "listview": - m.vm.$router.push({ - name: "ay-data-list-view", - params: { - recordid: m.vm.currentListViewId, - dataListKey: m.vm.dataListKey - } - }); - break; - default: window.$gz.eventBus.$emit( "notify-warning",