vcomply-workflow-engine 0.1.4 → 0.1.7

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.
@@ -12807,7 +12807,7 @@
12807
12807
  if (this.mode === 'CREATE') {
12808
12808
  PAYLOAD.linkage_object = { source: this.openedFrom, type: '', type_id: 0, source_id: 0 };
12809
12809
  if (this.openedFrom === 'COMPLIANCE_WORKROOM' && ((_a = this.reponsibilityData) === null || _a === void 0 ? void 0 : _a.responsibilityId)) {
12810
- PAYLOAD.linkage_object = { source_id: (_b = this.reponsibilityData) === null || _b === void 0 ? void 0 : _b.responsibilityId, type: '', type_id: 0 };
12810
+ PAYLOAD.linkage_object = { source_id: (_b = this.reponsibilityData) === null || _b === void 0 ? void 0 : _b.responsibilityId, type: '', type_id: 0, source: this.openedFrom };
12811
12811
  }
12812
12812
  if (['VIEW_AUDIT_EXECUTION_SUMMARY', 'EXECUTE_AUDIT_PLAN'].includes(this.openedFrom)) {
12813
12813
  if (((_c = this.logIssueForm) === null || _c === void 0 ? void 0 : _c.linkageType) && ((_e = this.logIssueForm) === null || _e === void 0 ? void 0 : _e.linkedControlRisk.length) > 0) {
@@ -12881,7 +12881,7 @@
12881
12881
  }
12882
12882
  };
12883
12883
  LogAnIssueComponent.prototype.viewIssue = function () {
12884
- var _a;
12884
+ var _a, _b;
12885
12885
  this.disconnectRefresh.emit(false);
12886
12886
  var url;
12887
12887
  if (window.location.host.startsWith('localhost')) {
@@ -12890,7 +12890,12 @@
12890
12890
  else {
12891
12891
  url = 'https://' + window.location.host;
12892
12892
  }
12893
- url += '/issue/issue-workroom/' + ((_a = this.issueData) === null || _a === void 0 ? void 0 : _a._id);
12893
+ if (window.location.host.startsWith('localhost')) {
12894
+ url += '/issue/issue-workroom/' + ((_a = this.issueData) === null || _a === void 0 ? void 0 : _a._id);
12895
+ }
12896
+ else {
12897
+ url += '/audit/issue/issue-workroom/' + ((_b = this.issueData) === null || _b === void 0 ? void 0 : _b._id);
12898
+ }
12894
12899
  window.location.href = url;
12895
12900
  };
12896
12901
  /**