This commit is contained in:
@@ -142,7 +142,7 @@ export default {
|
|||||||
//throw new Error(res.error);
|
//throw new Error(res.error);
|
||||||
throw new Error(window.$gz.errorHandler.errorToString(res, this));
|
throw new Error(window.$gz.errorHandler.errorToString(res, this));
|
||||||
} else {
|
} else {
|
||||||
this.close({ refresh: true });
|
this.close({ refresh: true, newFilterId: res.data.id });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//SAVE
|
//SAVE
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
<v-card>
|
<v-card>
|
||||||
<!-- {{ dataTablePagingOptions }}
|
<!-- {{ dataTablePagingOptions }}
|
||||||
{{ headers }} -->
|
{{ headers }} -->
|
||||||
{{ activeFilterId }}
|
|
||||||
<v-card-title>
|
<v-card-title>
|
||||||
<v-select
|
<v-select
|
||||||
v-model="activeFilterId"
|
v-model="activeFilterId"
|
||||||
@@ -533,6 +533,10 @@ export default {
|
|||||||
async editFilter() {
|
async editFilter() {
|
||||||
let res = await this.$refs.dataTableFilterManager.open();
|
let res = await this.$refs.dataTableFilterManager.open();
|
||||||
if (res && res.refresh == true) {
|
if (res && res.refresh == true) {
|
||||||
|
if (res.newFilterId) {
|
||||||
|
//save as new filter, select it
|
||||||
|
this.activeFilterId = res.newFilterId;
|
||||||
|
}
|
||||||
//refresh the filter picklist and get data from api
|
//refresh the filter picklist and get data from api
|
||||||
await fetchSavedFilterList(this);
|
await fetchSavedFilterList(this);
|
||||||
await this.getDataFromApi();
|
await this.getDataFromApi();
|
||||||
|
|||||||
Reference in New Issue
Block a user