vcomply-workflow-engine 3.1.48 → 3.1.50
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/esm2020/lib/more-option/more-option.component.mjs +2 -1
- package/esm2020/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +13 -9
- package/esm2020/lib/workflow-engine-container/workflow-engine-container.component.mjs +2 -1
- package/fesm2015/vcomply-workflow-engine.mjs +15 -9
- package/fesm2015/vcomply-workflow-engine.mjs.map +1 -1
- package/fesm2020/vcomply-workflow-engine.mjs +14 -8
- package/fesm2020/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5413,14 +5413,6 @@ class GrcObjectContainerComponent {
|
|
|
5413
5413
|
this.resetForm = new EventEmitter();
|
|
5414
5414
|
this.hideElementsFromMoreOptions = new EventEmitter();
|
|
5415
5415
|
this.hideMoreOption = [];
|
|
5416
|
-
this.authService.getUserInfo().subscribe((res) => {
|
|
5417
|
-
const riskPermission = res?.roleActions[res?.roleActions?.findIndex((ele) => ele?.moduleName == 'risk')];
|
|
5418
|
-
if (!riskPermission?.isActive) {
|
|
5419
|
-
this.hideMoreOption.push('LINK_RISK_CATEGORIES_RISKS');
|
|
5420
|
-
}
|
|
5421
|
-
this.hideElementsFromMoreOptions.emit(this.hideMoreOption);
|
|
5422
|
-
console.log('===========================>', this.hideMoreOption, riskPermission);
|
|
5423
|
-
});
|
|
5424
5416
|
}
|
|
5425
5417
|
ngOnDestroy() {
|
|
5426
5418
|
this.resetGRCForm();
|
|
@@ -5429,8 +5421,20 @@ class GrcObjectContainerComponent {
|
|
|
5429
5421
|
this.grcPayload = JSON.parse(JSON.stringify(this.grcService.GRC_PAYLOAD));
|
|
5430
5422
|
this.grcPayload.type = this.grcType;
|
|
5431
5423
|
this.listObject = this.grcService.LIST_OBJECT;
|
|
5424
|
+
this.getMoreOptionsPermission();
|
|
5432
5425
|
this._initiateAPI();
|
|
5433
5426
|
}
|
|
5427
|
+
getMoreOptionsPermission() {
|
|
5428
|
+
this.authService.getUserInfo().subscribe((res) => {
|
|
5429
|
+
const riskPermission = res?.roleActions[res?.roleActions?.findIndex((ele) => ele?.moduleName == 'risk')];
|
|
5430
|
+
if (!riskPermission?.isActive) {
|
|
5431
|
+
this.hideMoreOption.push('LINK_RISK_CATEGORIES_RISKS');
|
|
5432
|
+
console.log('===========================> 1', this.hideMoreOption, riskPermission);
|
|
5433
|
+
}
|
|
5434
|
+
this.hideElementsFromMoreOptions.emit(this.hideMoreOption);
|
|
5435
|
+
console.log('===========================>', this.hideMoreOption, riskPermission);
|
|
5436
|
+
});
|
|
5437
|
+
}
|
|
5434
5438
|
//TODO: implement this
|
|
5435
5439
|
populateOptionalFields() {
|
|
5436
5440
|
const activatedOptions = [];
|
|
@@ -30226,6 +30230,7 @@ class MoreOptionComponent {
|
|
|
30226
30230
|
}
|
|
30227
30231
|
}
|
|
30228
30232
|
hideElements(hiddenList) {
|
|
30233
|
+
console.log('===========================> more option', this.currentWorkflow, hiddenList);
|
|
30229
30234
|
if (this.currentWorkflow) {
|
|
30230
30235
|
this.moreOptionsList[this.currentWorkflow].forEach((element) => {
|
|
30231
30236
|
if (hiddenList.includes(element.code)) {
|
|
@@ -39239,6 +39244,7 @@ class WorkflowEngineContainerComponent {
|
|
|
39239
39244
|
}
|
|
39240
39245
|
}
|
|
39241
39246
|
hideElementsFromMoreOptions(event) {
|
|
39247
|
+
console.log('===========================> container', event);
|
|
39242
39248
|
this.moreOption?.hideElements(event);
|
|
39243
39249
|
}
|
|
39244
39250
|
showConfirmationPopup(config) {
|