vcomply-workflow-engine 6.1.86 → 6.1.87
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/workflow-program/workflow-program.component.mjs +11 -4
- package/fesm2022/vcomply-workflow-engine.mjs +10 -3
- package/fesm2022/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow-program/workflow-program.component.d.ts +2 -0
- package/lib/workflow-risk/workflow-risk.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -45371,6 +45371,7 @@ class WorkflowProgramComponent {
|
|
|
45371
45371
|
];
|
|
45372
45372
|
this.additionalOption = { ...CONSTANTS$1.additionalOption };
|
|
45373
45373
|
this.activeList = '';
|
|
45374
|
+
this.manageProgramsRoleId = [];
|
|
45374
45375
|
this.fileUploadTracker = {
|
|
45375
45376
|
description: [],
|
|
45376
45377
|
objective: [],
|
|
@@ -45873,6 +45874,7 @@ class WorkflowProgramComponent {
|
|
|
45873
45874
|
this.programService.getRoles().subscribe({
|
|
45874
45875
|
next: (res) => {
|
|
45875
45876
|
this.lists.ROLES = res;
|
|
45877
|
+
console.log(this.lists.ROLES, 'ROLES');
|
|
45876
45878
|
const defaultSystemVal = this.lists?.ROLES?.data
|
|
45877
45879
|
?.filter((ele) => ele?.roleName?.toLowerCase() === 'key admin' ||
|
|
45878
45880
|
ele?.roleName?.toLowerCase() === 'admin')
|
|
@@ -45880,15 +45882,19 @@ class WorkflowProgramComponent {
|
|
|
45880
45882
|
const defaultVal = this.lists?.ROLES?.data?.filter((ele) => ele?.roleName?.toLowerCase() === 'key admin' ||
|
|
45881
45883
|
ele?.roleName?.toLowerCase() === 'admin');
|
|
45882
45884
|
this.lists.SYSTEM_ROLE_IDS = defaultSystemVal;
|
|
45885
|
+
this.manageProgramsRoleId = this.getManageProgramsRoleId();
|
|
45883
45886
|
if (this.mode !== 'EDIT') {
|
|
45884
45887
|
this.setFormField('program_roles', defaultVal);
|
|
45888
|
+
this.fetchUsersAssociatedWithRoles();
|
|
45889
|
+
this.fetchGroupsAssociatedWithRoles();
|
|
45885
45890
|
}
|
|
45886
|
-
this.fetchUsersAssociatedWithRoles();
|
|
45887
|
-
this.fetchGroupsAssociatedWithRoles();
|
|
45888
45891
|
},
|
|
45889
45892
|
error: (err) => { },
|
|
45890
45893
|
});
|
|
45891
45894
|
}
|
|
45895
|
+
getManageProgramsRoleId() {
|
|
45896
|
+
return this.lists?.ROLES?.data?.filter((ele) => !['key admin', 'admin'].includes(ele?.roleName?.toLowerCase())).map((ele) => ele?._id) ?? [];
|
|
45897
|
+
}
|
|
45892
45898
|
//fetch the list of responsibilities center
|
|
45893
45899
|
fetchRC() {
|
|
45894
45900
|
this.programService.getResponsibilityCenterList().subscribe({
|
|
@@ -45919,7 +45925,8 @@ class WorkflowProgramComponent {
|
|
|
45919
45925
|
}
|
|
45920
45926
|
fetchGroupsAssociatedWithRoles() {
|
|
45921
45927
|
const roleIds = this.controls.program_roles?.value?.map((ele) => ele?._id);
|
|
45922
|
-
this.
|
|
45928
|
+
console.log(this.manageProgramsRoleId, 'manageProgramsRoleId');
|
|
45929
|
+
this.programService.fetchAllRoleGroups(this.manageProgramsRoleId).subscribe({
|
|
45923
45930
|
next: (res) => {
|
|
45924
45931
|
this.lists.OWNERS_GROUPS = res;
|
|
45925
45932
|
const roleIds = this.controls.program_roles?.value.map((ele) => ele._id);
|