PMCORE-3283:The delete search and save search are not working
This commit is contained in:
@@ -175,7 +175,8 @@ class Api {
|
|||||||
headers: {
|
headers: {
|
||||||
"Accept": "application/json",
|
"Accept": "application/json",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": `Bearer ` + credentials.accessToken
|
"Authorization": `Bearer ` + credentials.accessToken,
|
||||||
|
"Accept-Language": lang
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,9 +29,10 @@ export let filters = {
|
|||||||
put(data) {
|
put(data) {
|
||||||
return Api.put({
|
return Api.put({
|
||||||
service: "PUT_MY_FILTERS",
|
service: "PUT_MY_FILTERS",
|
||||||
id: data.id,
|
|
||||||
data,
|
data,
|
||||||
keys: {},
|
keys: {
|
||||||
|
id: data.id,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
UNASSIGNED_LIST: "/home/unassigned",
|
UNASSIGNED_LIST: "/home/unassigned",
|
||||||
MY_FILTERS: "/cases/advanced-search/filters",
|
MY_FILTERS: "/cases/advanced-search/filters",
|
||||||
POST_MY_FILTERS: "/cases/advanced-search/filter",
|
POST_MY_FILTERS: "/cases/advanced-search/filter",
|
||||||
PUT_MY_FILTERS: "/cases/advanced-search/filter/",
|
PUT_MY_FILTERS: "/cases/advanced-search/filter/{id}",
|
||||||
DELETE_MY_FILTERS: "/cases/advanced-search/filter/",
|
DELETE_MY_FILTERS: "/cases/advanced-search/filter/",
|
||||||
SEARCH: "/home/search",
|
SEARCH: "/home/search",
|
||||||
PROCESSES: "/home/processes",
|
PROCESSES: "/home/processes",
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ export default {
|
|||||||
this.handleJumpTo();
|
this.handleJumpTo();
|
||||||
},
|
},
|
||||||
onClick() {
|
onClick() {
|
||||||
if (this.id) {
|
if (this.id && this.id !== 'CASES_SEARCH') {
|
||||||
this.updateData(this.id);
|
this.updateData(this.id);
|
||||||
} else {
|
} else {
|
||||||
this.$refs['saveFilter'].show();
|
this.$refs['saveFilter'].show();
|
||||||
@@ -619,7 +619,9 @@ export default {
|
|||||||
* Delete Search handler
|
* Delete Search handler
|
||||||
*/
|
*/
|
||||||
onDeleteSearch() {
|
onDeleteSearch() {
|
||||||
this.$emit("onRemoveFilter", this.id);
|
if (this.id && this.id !== 'CASES_SEARCH') {
|
||||||
|
this.$emit("onRemoveFilter", this.id);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
checkFormValidity() {
|
checkFormValidity() {
|
||||||
const valid = this.$refs.form.checkValidity();
|
const valid = this.$refs.form.checkValidity();
|
||||||
|
|||||||
Reference in New Issue
Block a user