This commit is contained in:
2020-11-04 17:51:18 +00:00
parent abd8103142
commit 10ff3c2322

View File

@@ -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;