PMCORE-3279:Solve error when unpausing a case
This commit is contained in:
@@ -592,11 +592,16 @@ export default {
|
||||
* @param {object} data
|
||||
*/
|
||||
onClickUnpause(data) {
|
||||
Api.cases.unpause(data.row).then((response) => {
|
||||
if (response.statusText === "OK") {
|
||||
this.$refs["vueTable"].getData();
|
||||
}
|
||||
});
|
||||
let that = this;
|
||||
Api.cases.unpause(data.row)
|
||||
.then((response) => {
|
||||
if (response.statusText === "OK") {
|
||||
that.$refs["vueTable"].getData();
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
that.showAlert(error.response.data.error.message, 'danger');
|
||||
});
|
||||
},
|
||||
/**
|
||||
* Claim case
|
||||
|
||||
Reference in New Issue
Block a user