vcomply-workflow-engine 6.0.67 → 6.0.68
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.
- package/esm2022/lib/constants/api.constants.mjs +6 -0
- package/esm2022/lib/workflow-policy/workflow-policy.component.mjs +4 -3
- package/fesm2022/vcomply-workflow-engine.mjs +8 -2
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/constants/api.constants.d.ts +5 -0
- package/package.json +1 -1
|
@@ -34524,6 +34524,12 @@ const CONSTANTS$1 = {
|
|
|
34524
34524
|
POLICY_ID: 'policyId',
|
|
34525
34525
|
};
|
|
34526
34526
|
|
|
34527
|
+
const API = {
|
|
34528
|
+
subscriptionList: `subscriptionList`,
|
|
34529
|
+
goToPolicyWorkroom: `/all/policy/workroom?id=`,
|
|
34530
|
+
editPolicy: `/all/policy/edit-policy?id=`,
|
|
34531
|
+
};
|
|
34532
|
+
|
|
34527
34533
|
class RestApiService {
|
|
34528
34534
|
constructor(httpClient, authService, config) {
|
|
34529
34535
|
this.httpClient = httpClient;
|
|
@@ -38499,11 +38505,11 @@ class WorkflowPolicyComponent {
|
|
|
38499
38505
|
this.loader = false;
|
|
38500
38506
|
if (document.fileExtension === 'docx' ||
|
|
38501
38507
|
document.fileExtension === 'DOCX') {
|
|
38502
|
-
url = this.baseURL +
|
|
38508
|
+
url = this.baseURL + API.editPolicy + this.policyId;
|
|
38503
38509
|
}
|
|
38504
38510
|
else if (document.fileExtension === 'pdf' ||
|
|
38505
38511
|
document.fileExtension === 'PDF') {
|
|
38506
|
-
url = this.baseURL +
|
|
38512
|
+
url = this.baseURL + API.goToPolicyWorkroom + this.policyId;
|
|
38507
38513
|
}
|
|
38508
38514
|
this.iframeService.redirectIfInIframe(url, true);
|
|
38509
38515
|
}
|