Merged in bugfix/PMCORE-3283 (pull request #8108)
PMCORE-3283 Approved-by: Rodrigo Quelca
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
578cc0b86d
@@ -175,7 +175,8 @@ class Api {
|
||||
headers: {
|
||||
"Accept": "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) {
|
||||
return Api.put({
|
||||
service: "PUT_MY_FILTERS",
|
||||
id: data.id,
|
||||
data,
|
||||
keys: {},
|
||||
keys: {
|
||||
id: data.id,
|
||||
},
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
UNASSIGNED_LIST: "/home/unassigned",
|
||||
MY_FILTERS: "/cases/advanced-search/filters",
|
||||
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/",
|
||||
SEARCH: "/home/search",
|
||||
PROCESSES: "/home/processes",
|
||||
|
||||
@@ -608,7 +608,7 @@ export default {
|
||||
this.handleJumpTo();
|
||||
},
|
||||
onClick() {
|
||||
if (this.id) {
|
||||
if (this.id && this.id !== 'CASES_SEARCH') {
|
||||
this.updateData(this.id);
|
||||
} else {
|
||||
this.$refs['saveFilter'].show();
|
||||
@@ -619,7 +619,9 @@ export default {
|
||||
* Delete Search handler
|
||||
*/
|
||||
onDeleteSearch() {
|
||||
this.$emit("onRemoveFilter", this.id);
|
||||
if (this.id && this.id !== 'CASES_SEARCH') {
|
||||
this.$emit("onRemoveFilter", this.id);
|
||||
}
|
||||
},
|
||||
checkFormValidity() {
|
||||
const valid = this.$refs.form.checkValidity();
|
||||
|
||||
Reference in New Issue
Block a user