vcomply-workflow-engine 6.1.87 → 6.1.88

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.
@@ -45425,7 +45425,9 @@ class WorkflowProgramComponent {
45425
45425
  this.setFormField('program_type', this.programType ?? 1);
45426
45426
  this.fetchOrganizationUsers();
45427
45427
  this.fetchOrganizationGroup();
45428
- this.fetchRoles();
45428
+ if (this.mode !== 'EDIT') {
45429
+ this.fetchRoles();
45430
+ }
45429
45431
  this.fetchRC();
45430
45432
  this.handleDataPopulation();
45431
45433
  if (this.addToProgramDetails?._id) {
@@ -45874,7 +45876,6 @@ class WorkflowProgramComponent {
45874
45876
  this.programService.getRoles().subscribe({
45875
45877
  next: (res) => {
45876
45878
  this.lists.ROLES = res;
45877
- console.log(this.lists.ROLES, 'ROLES');
45878
45879
  const defaultSystemVal = this.lists?.ROLES?.data
45879
45880
  ?.filter((ele) => ele?.roleName?.toLowerCase() === 'key admin' ||
45880
45881
  ele?.roleName?.toLowerCase() === 'admin')
@@ -45883,11 +45884,9 @@ class WorkflowProgramComponent {
45883
45884
  ele?.roleName?.toLowerCase() === 'admin');
45884
45885
  this.lists.SYSTEM_ROLE_IDS = defaultSystemVal;
45885
45886
  this.manageProgramsRoleId = this.getManageProgramsRoleId();
45886
- if (this.mode !== 'EDIT') {
45887
- this.setFormField('program_roles', defaultVal);
45888
- this.fetchUsersAssociatedWithRoles();
45889
- this.fetchGroupsAssociatedWithRoles();
45890
- }
45887
+ this.setFormField('program_roles', defaultVal);
45888
+ this.fetchUsersAssociatedWithRoles();
45889
+ this.fetchGroupsAssociatedWithRoles();
45891
45890
  },
45892
45891
  error: (err) => { },
45893
45892
  });
@@ -45925,7 +45924,6 @@ class WorkflowProgramComponent {
45925
45924
  }
45926
45925
  fetchGroupsAssociatedWithRoles() {
45927
45926
  const roleIds = this.controls.program_roles?.value?.map((ele) => ele?._id);
45928
- console.log(this.manageProgramsRoleId, 'manageProgramsRoleId');
45929
45927
  this.programService.fetchAllRoleGroups(this.manageProgramsRoleId).subscribe({
45930
45928
  next: (res) => {
45931
45929
  this.lists.OWNERS_GROUPS = res;
@@ -46154,8 +46152,8 @@ class WorkflowProgramComponent {
46154
46152
  this.loader = false;
46155
46153
  this.showSmiley = true;
46156
46154
  this.uiKitService.isSmileyOn = true;
46157
- this.postIframeMessage(PostMessageEvent.PROGRAM_UPDATED, res);
46158
46155
  this.createdProgramId = res?.data?.program?.id;
46156
+ this.postIframeMessage(PostMessageEvent.PROGRAM_UPDATED, res);
46159
46157
  },
46160
46158
  error: (err) => {
46161
46159
  this.loader = false;
@@ -46282,18 +46280,14 @@ class WorkflowProgramComponent {
46282
46280
  this.setFormField('program_type', programType);
46283
46281
  this.setFormField('program_objective', res?.description);
46284
46282
  this.editorData.programObjective = res?.description;
46285
- if (res?.roles && res?.roles?.length && this.mode === 'EDIT') {
46286
- this.additionalOption.ROLES = true;
46287
- }
46288
46283
  if (res.customFields.length) {
46289
46284
  this.setFormField('custom_fields', res.customFields);
46290
46285
  this.additionalOption.CUSTOM_FIELDS = true;
46291
46286
  this.populateOptionalFields();
46292
46287
  }
46288
+ this.fetchRoles();
46293
46289
  this.populateMembers(res);
46294
46290
  this.populateGroups(res);
46295
- this.fetchUsersAssociatedWithRoles('getProgramDetails');
46296
- this.fetchGroupsAssociatedWithRoles();
46297
46291
  this.fetchOrganizationGroup(res);
46298
46292
  this.fetchOrganizationUsers();
46299
46293
  }