PMCORE-3438: Paused > Different view to Unpaused a Case when the List or Card View is activated.

This commit is contained in:
Rodrigo Quelca
2021-10-18 14:02:48 +00:00
parent d94523158c
commit 2574b6da75
4 changed files with 17 additions and 5 deletions

View File

@@ -686,7 +686,13 @@ export default {
} else if (self.clickCount === 2) {
clearTimeout(self.singleClickTimer);
self.clickCount = 0;
self.openCase(event.row);
if (this.data.pageParent === "paused") {
self.showModalUnpauseCase(event.row);
} else if(this.data.pageParent === "unassigned") {
self.claimCase(event.row);
} else {
self.openCase(event.row);
}
}
},
/**
@@ -979,7 +985,7 @@ export default {
}
this.data.settings = newData.settings;
this.filters = {};
this.typeView = newData.settings.view.typeView;
this.typeView = newData.settings && newData.settings.view ? newData.settings.view.typeView : this.typeView;
}
if (this.typeView === "GRID" && this.$refs["vueTable"]) {
if (newData && newData.settings && newData.settings.orderBy) {

View File

@@ -59,7 +59,13 @@ export default {
optionsVueView: {
limit: 10,
dblClick: (event, item, options) => {
this.openCase(item);
if (this.data.pageParent === "paused") {
this.showModalUnpauseCase(item);
} else if(this.data.pageParent === "unassigned") {
this.claimCase(item);
} else {
this.openCase(item);
}
},
headings: {
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),

View File

@@ -47,7 +47,7 @@ export default {
optionsVueView: {
limit: 10,
dblClick: (event, item, options) => {
this.openCase(item);
this.showModalUnpauseCase(item);
},
headings: {
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),

View File

@@ -47,7 +47,7 @@ export default {
optionsVueList: {
limit: 10,
dblClick: (event, item, options) => {
this.openCase(item);
this.claimCase(item);
},
headings: {
case_number: this.$i18n.t("ID_MYCASE_NUMBER"),