vcomply-workflow-engine 5.0.9 → 5.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12158,7 +12158,9 @@ class CaseResolutionDeadlineComponent {
12158
12158
  isCaseResolutionDeadlineDisabled() {
12159
12159
  const hasAssignees = this.payload?.caseToWorkflow?.assignees?.length > 0;
12160
12160
  const hasAssigneeGroups = this.payload?.caseToWorkflow?.assignees_group?.length > 0;
12161
- return (!this.payload?.rc_details?.main_rc_id ||
12161
+ const hasValidRcDetails = this.payload?.rc_details?.ids?.length === 1 ||
12162
+ this.payload?.rc_details?.main_rc_id;
12163
+ return (!hasValidRcDetails ||
12162
12164
  !this.payload?.case_type?.id ||
12163
12165
  !this.payload?.priority?.id ||
12164
12166
  !(hasAssignees || hasAssigneeGroups) ||
@@ -13623,6 +13625,7 @@ class WorkflowCaseComponent {
13623
13625
  else {
13624
13626
  this.reportACaseService.reportACase(this.payload).subscribe({
13625
13627
  next: (res) => {
13628
+ this.caseData = { ...res?.data, source: this.source };
13626
13629
  this.showSmiley = true;
13627
13630
  this.uiKitService.isSmileyOn = true;
13628
13631
  },
@@ -13636,6 +13639,7 @@ class WorkflowCaseComponent {
13636
13639
  this.reportACaseService
13637
13640
  .updateCase(this.payload, this.caseId)
13638
13641
  .subscribe((res) => {
13642
+ this.caseData = { ...res?.data, source: this.source };
13639
13643
  this.showSmiley = true;
13640
13644
  this.uiKitService.isSmileyOn = true;
13641
13645
  });
@@ -13895,6 +13899,7 @@ class WorkflowCaseComponent {
13895
13899
  this.reportACaseService
13896
13900
  .reportACase(this.addToCasePayload)
13897
13901
  .subscribe((res) => {
13902
+ this.caseData = { ...res?.data, source: this.source };
13898
13903
  this.showSmiley = true;
13899
13904
  this.uiKitService.isSmileyOn = true;
13900
13905
  });
@@ -13909,6 +13914,7 @@ class WorkflowCaseComponent {
13909
13914
  this.reportACaseService
13910
13915
  .addCaseToWorkflow(workflowPayload)
13911
13916
  .subscribe((res) => {
13917
+ this.caseData = { ...res?.data, source: this.source };
13912
13918
  this.showSmiley = true;
13913
13919
  this.uiKitService.isSmileyOn = true;
13914
13920
  });
@@ -13917,6 +13923,7 @@ class WorkflowCaseComponent {
13917
13923
  this.reportACaseService
13918
13924
  .updateCase(this.addToCasePayload, this.caseId)
13919
13925
  .subscribe((res) => {
13926
+ this.caseData = { ...res?.data, source: this.source };
13920
13927
  this.showSmiley = true;
13921
13928
  this.uiKitService.isSmileyOn = true;
13922
13929
  });
@@ -13990,7 +13997,7 @@ class WorkflowCaseComponent {
13990
13997
  this.resetForm();
13991
13998
  this.showSmiley = false;
13992
13999
  this.uiKitService.isSmileyOn = false;
13993
- this.closeWorkFlow(evt, false);
14000
+ this.closeWorkFlow(this.caseData, false);
13994
14001
  }
13995
14002
  closeWorkFlow(evt, confirm) {
13996
14003
  this.closeWorkflow.emit({ evt, confirm });