diff --git a/ayanova/src/components/dash-test-list-widgets-priciest.vue b/ayanova/src/components/dash-test-list-widgets-priciest.vue index a859ba71..bf82a445 100644 --- a/ayanova/src/components/dash-test-list-widgets-priciest.vue +++ b/ayanova/src/components/dash-test-list-widgets-priciest.vue @@ -52,7 +52,22 @@ export default { computed: {}, methods: { moreClick() { - console.log("more click"); + const LIST_FORM_KEY = "widget-list"; + //get current settings for the form + let formSettings = window.$gz.form.getFormSettings(LIST_FORM_KEY); + + //switch to an unsaved listview and substitute this dash widgets list view criteria + formSettings.temp.page = 0; + formSettings.saved.dataTable.listViewId = -1; + formSettings.saved.dataTable.unsavedListView = LIST_VIEW.listView; + + //save back again + window.$gz.form.setFormSettings(LIST_FORM_KEY, formSettings); + + //now navigate to the data table list view + this.$router.push({ + name: "widget-list" + }); }, async getDataFromApi() { let lv = LIST_VIEW;