Skip to content

Commit 1c4535f

Browse files
authored
Merge pull request #298 from shuhaib-aot/fix-back-to-formlist
Fixed custom event submission : back to form list
2 parents 2bb54ab + 337fb59 commit 1c4535f

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

camunda-formio-tasklist-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "camunda-formio-tasklist-vue",
3-
"version": "1.1.7-rc",
3+
"version": "1.1.8-rc",
44
"description": "Vue components to integrate formsflow.ai",
55
"private": false,
66
"main": "./dist/camunda-formio-tasklist-vue.common.js",

camunda-formio-tasklist-vue/src/components/form/FormListModal.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,17 @@ export default class FormListModal extends Mixins(BaseMixin) {
420420
oncustomEventCallback = (customEvent: CustomEventPayload) => {
421421
switch (customEvent.type) {
422422
case "customSubmitDone":
423+
this.backToFormList();
423424
this.$emit("update-task");
424425
break;
426+
case "cancelSubmission":
427+
this.backToFormList();
428+
break;
425429
default:
426430
break;
427431
}
428432
};
433+
429434
430435
}
431436
</script>

camunda-formio-tasklist-vue/src/components/layout/RightSider.vue

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@
474474
import {
475475
CamundaRest,
476476
SEARCH_USERS_BY,
477-
SocketIOService,
477+
// SocketIOService,
478478
getISODateTime,
479479
reviewerGroup,
480480
} from "../../services";
@@ -571,9 +571,10 @@ async onSetassignee() {
571571
this.bpmApiUrl
572572
);
573573
await this.toggleassignee();
574-
if (!SocketIOService.isConnected()) {
575-
this.getBPMTaskandReload();
576-
}
574+
// if (!SocketIOService.isConnected()) {
575+
// this.getBPMTaskandReload();
576+
// }
577+
this.getBPMTaskandReload();
577578
}
578579
579580
// toggle assignee
@@ -668,9 +669,10 @@ async onClaim() {
668669
this.bpmApiUrl
669670
);
670671
671-
if (!SocketIOService.isConnected()) {
672-
this.getBPMTaskandReload();
673-
}
672+
// if (!SocketIOService.isConnected()) {
673+
// this.getBPMTaskandReload();
674+
// }
675+
this.getBPMTaskandReload();
674676
this.loadingClaimAndUnclaim= false;
675677
676678
}
@@ -681,9 +683,10 @@ async onUnClaim() {
681683
this.loadingClaimAndUnclaim= true;
682684
await CamundaRest.unclaim(this.token, this.task.id!, this.bpmApiUrl);
683685
684-
if (!SocketIOService.isConnected()) {
685-
this.getBPMTaskandReload();
686-
}
686+
// if (!SocketIOService.isConnected()) {
687+
// this.getBPMTaskandReload();
688+
// }
689+
this.getBPMTaskandReload();
687690
this.loadingClaimAndUnclaim= false;
688691
}
689692
@@ -748,9 +751,9 @@ async deleteGroup(groupid: string) {
748751
// update data
749752
async updateTaskDatedetails(taskId: string, task: TaskPayload) {
750753
await CamundaRest.updateTasksByID(this.token, taskId, this.bpmApiUrl, task);
751-
if (!SocketIOService.isConnected()) {
752-
await this.reloadCurrentTask();
753-
}
754+
// if (!SocketIOService.isConnected()) {
755+
await this.reloadCurrentTask();
756+
// }
754757
}
755758
756759

0 commit comments

Comments
 (0)