Skip to content

Commit

Permalink
Merge pull request #298 from shuhaib-aot/fix-back-to-formlist
Browse files Browse the repository at this point in the history
Fixed custom event submission : back to form list
  • Loading branch information
shuhaib-aot authored Feb 5, 2024
2 parents 2bb54ab + 337fb59 commit 1c4535f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion camunda-formio-tasklist-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camunda-formio-tasklist-vue",
"version": "1.1.7-rc",
"version": "1.1.8-rc",
"description": "Vue components to integrate formsflow.ai",
"private": false,
"main": "./dist/camunda-formio-tasklist-vue.common.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,17 @@ export default class FormListModal extends Mixins(BaseMixin) {
oncustomEventCallback = (customEvent: CustomEventPayload) => {
switch (customEvent.type) {
case "customSubmitDone":
this.backToFormList();
this.$emit("update-task");
break;
case "cancelSubmission":
this.backToFormList();
break;
default:
break;
}
};
}
</script>
Expand Down
29 changes: 16 additions & 13 deletions camunda-formio-tasklist-vue/src/components/layout/RightSider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
import {
CamundaRest,
SEARCH_USERS_BY,
SocketIOService,
// SocketIOService,
getISODateTime,
reviewerGroup,
} from "../../services";
Expand Down Expand Up @@ -571,9 +571,10 @@ async onSetassignee() {
this.bpmApiUrl
);
await this.toggleassignee();
if (!SocketIOService.isConnected()) {
this.getBPMTaskandReload();
}
// if (!SocketIOService.isConnected()) {
// this.getBPMTaskandReload();
// }
this.getBPMTaskandReload();
}
// toggle assignee
Expand Down Expand Up @@ -668,9 +669,10 @@ async onClaim() {
this.bpmApiUrl
);
if (!SocketIOService.isConnected()) {
this.getBPMTaskandReload();
}
// if (!SocketIOService.isConnected()) {
// this.getBPMTaskandReload();
// }
this.getBPMTaskandReload();
this.loadingClaimAndUnclaim= false;
}
Expand All @@ -681,9 +683,10 @@ async onUnClaim() {
this.loadingClaimAndUnclaim= true;
await CamundaRest.unclaim(this.token, this.task.id!, this.bpmApiUrl);
if (!SocketIOService.isConnected()) {
this.getBPMTaskandReload();
}
// if (!SocketIOService.isConnected()) {
// this.getBPMTaskandReload();
// }
this.getBPMTaskandReload();
this.loadingClaimAndUnclaim= false;
}
Expand Down Expand Up @@ -748,9 +751,9 @@ async deleteGroup(groupid: string) {
// update data
async updateTaskDatedetails(taskId: string, task: TaskPayload) {
await CamundaRest.updateTasksByID(this.token, taskId, this.bpmApiUrl, task);
if (!SocketIOService.isConnected()) {
await this.reloadCurrentTask();
}
// if (!SocketIOService.isConnected()) {
await this.reloadCurrentTask();
// }
}
Expand Down

0 comments on commit 1c4535f

Please sign in to comment.