This commit is contained in:
2021-02-04 15:25:46 +00:00
parent 84cb4967ad
commit 8a5e5e04c5
2 changed files with 6 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ export default {
//throw new Error(res.error);
throw new Error(window.$gz.errorHandler.errorToString(res, this));
} else {
this.close({ refresh: true });
this.close({ refresh: true, newFilterId: res.data.id });
}
} else {
//SAVE

View File

@@ -16,7 +16,7 @@
<v-card>
<!-- {{ dataTablePagingOptions }}
{{ headers }} -->
{{ activeFilterId }}
<v-card-title>
<v-select
v-model="activeFilterId"
@@ -533,6 +533,10 @@ export default {
async editFilter() {
let res = await this.$refs.dataTableFilterManager.open();
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
await fetchSavedFilterList(this);
await this.getDataFromApi();