Merged in bugfix/PMCORE-3322 (pull request #8140)

PMCORE-3322 Unpause and Pause button seems not ben functional using HTTP/2.0 PMCORE_3.7.0 build

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Gutierrez
2021-09-17 14:53:04 +00:00
committed by Julio Cesar Laura Avendaño
5 changed files with 7 additions and 6 deletions

View File

@@ -55,7 +55,7 @@ export default {
deleteCustomCaseList() {
let that = this;
api.deleteCaseList(this.data).then((response) => {
if (response.statusText === "OK") {
if (response.statusText === "OK" || response.status === 200) {
that.$refs["modal-delete-list"].hide();
that.$parent.$refs["table"].getData();
that.$parent.$refs['ellipsis-' + that.data.id].hideActionButtons();

View File

@@ -594,7 +594,7 @@ export default {
let that = this;
Api.cases.unpause(data.row)
.then((response) => {
if (response.statusText === "OK") {
if (response.statusText === "OK" || response.status === 200) {
that.$refs["vueTable"].getData();
}
})

View File

@@ -164,7 +164,8 @@ export default {
this.data.reasonPause = this.pauseData.reasonPause;
api.cases.pauseCase(this.data)
.then((response) => {
if (response.statusText == "OK") {
console.log(response);
if (response.statusText == "OK" || response.status === 200) {
that.$refs["modal-pause-case"].hide();
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
if (that.$parent.$refs["vueTable"] !== undefined) {

View File

@@ -123,7 +123,7 @@ export default {
api.cases.getUserReassign(this.data).then((response) => {
var users = response.data.data,
i;
if (response.statusText == "OK") {
if (response.statusText == "OK" || response.status === 200) {
for (i = 0; i < users.length; i += 1) {
that.users.push({
value: users[i].USR_UID,
@@ -147,7 +147,7 @@ export default {
this.data.reasonReassign = this.reasonReassign;
this.notifyUser = this.notifyUser;
api.cases.reassingCase(this.data).then((response) => {
if (response.statusText == "OK") {
if (response.statusText == "OK" || response.status === 200) {
that.$refs["modal-reassign-case"].hide();
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
if (that.$parent.$refs["vueTable"] !== undefined) {

View File

@@ -53,7 +53,7 @@ export default {
unpauseCase() {
let that = this;
api.cases.unpause(this.data).then((response) => {
if (response.statusText == "OK") {
if (response.statusText == "OK" || response.status === 200) {
that.$refs["modal-unpause-case"].hide();
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
if (that.$parent.$refs["vueTable"] !== undefined) {