PMCORE-3322 Unpause and Pause button seems not ben functional using HTTP/2.0 PMCORE_3.7.0 build
This commit is contained in:
@@ -55,7 +55,7 @@ export default {
|
|||||||
deleteCustomCaseList() {
|
deleteCustomCaseList() {
|
||||||
let that = this;
|
let that = this;
|
||||||
api.deleteCaseList(this.data).then((response) => {
|
api.deleteCaseList(this.data).then((response) => {
|
||||||
if (response.statusText === "OK") {
|
if (response.statusText === "OK" || response.status === 200) {
|
||||||
that.$refs["modal-delete-list"].hide();
|
that.$refs["modal-delete-list"].hide();
|
||||||
that.$parent.$refs["table"].getData();
|
that.$parent.$refs["table"].getData();
|
||||||
that.$parent.$refs['ellipsis-' + that.data.id].hideActionButtons();
|
that.$parent.$refs['ellipsis-' + that.data.id].hideActionButtons();
|
||||||
|
|||||||
@@ -594,7 +594,7 @@ export default {
|
|||||||
let that = this;
|
let that = this;
|
||||||
Api.cases.unpause(data.row)
|
Api.cases.unpause(data.row)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.statusText === "OK") {
|
if (response.statusText === "OK" || response.status === 200) {
|
||||||
that.$refs["vueTable"].getData();
|
that.$refs["vueTable"].getData();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -164,7 +164,8 @@ export default {
|
|||||||
this.data.reasonPause = this.pauseData.reasonPause;
|
this.data.reasonPause = this.pauseData.reasonPause;
|
||||||
api.cases.pauseCase(this.data)
|
api.cases.pauseCase(this.data)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.statusText == "OK") {
|
console.log(response);
|
||||||
|
if (response.statusText == "OK" || response.status === 200) {
|
||||||
that.$refs["modal-pause-case"].hide();
|
that.$refs["modal-pause-case"].hide();
|
||||||
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
||||||
if (that.$parent.$refs["vueTable"] !== undefined) {
|
if (that.$parent.$refs["vueTable"] !== undefined) {
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ export default {
|
|||||||
api.cases.getUserReassign(this.data).then((response) => {
|
api.cases.getUserReassign(this.data).then((response) => {
|
||||||
var users = response.data.data,
|
var users = response.data.data,
|
||||||
i;
|
i;
|
||||||
if (response.statusText == "OK") {
|
if (response.statusText == "OK" || response.status === 200) {
|
||||||
for (i = 0; i < users.length; i += 1) {
|
for (i = 0; i < users.length; i += 1) {
|
||||||
that.users.push({
|
that.users.push({
|
||||||
value: users[i].USR_UID,
|
value: users[i].USR_UID,
|
||||||
@@ -147,7 +147,7 @@ export default {
|
|||||||
this.data.reasonReassign = this.reasonReassign;
|
this.data.reasonReassign = this.reasonReassign;
|
||||||
this.notifyUser = this.notifyUser;
|
this.notifyUser = this.notifyUser;
|
||||||
api.cases.reassingCase(this.data).then((response) => {
|
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.$refs["modal-reassign-case"].hide();
|
||||||
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
||||||
if (that.$parent.$refs["vueTable"] !== undefined) {
|
if (that.$parent.$refs["vueTable"] !== undefined) {
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
unpauseCase() {
|
unpauseCase() {
|
||||||
let that = this;
|
let that = this;
|
||||||
api.cases.unpause(this.data).then((response) => {
|
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.$refs["modal-unpause-case"].hide();
|
||||||
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
that.$parent.$refs['ellipsis-' + that.data.TAS_UID].hideActionButtons()
|
||||||
if (that.$parent.$refs["vueTable"] !== undefined) {
|
if (that.$parent.$refs["vueTable"] !== undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user