This commit is contained in:
@@ -52,7 +52,22 @@ export default {
|
|||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
moreClick() {
|
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() {
|
async getDataFromApi() {
|
||||||
let lv = LIST_VIEW;
|
let lv = LIST_VIEW;
|
||||||
|
|||||||
Reference in New Issue
Block a user