vcomply-workflow-engine 6.6.2 → 6.6.3

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.
@@ -31914,6 +31914,16 @@ class WorkflowComplianceComponent {
31914
31914
  this.unSubscribeProgram = new Subject();
31915
31915
  this.customFields = [];
31916
31916
  this.selectedPrograms = {};
31917
+ this.getOrgUserInfo();
31918
+ }
31919
+ ngOnInit() {
31920
+ this.setFeatureFlags();
31921
+ this.getInitialData();
31922
+ this.populateRCList();
31923
+ this.pickerChanged.emit(false);
31924
+ }
31925
+ getOrgUserInfo() {
31926
+ this.loader = true;
31917
31927
  this.organizationCommonService?.getOrgUserInfo()?.subscribe({
31918
31928
  next: (res) => {
31919
31929
  const complianceSubmodule = res?.roleActions[res?.roleActions?.findIndex((ele) => ele?.moduleName === 'compliance')]?.subModule;
@@ -31929,15 +31939,10 @@ class WorkflowComplianceComponent {
31929
31939
  this.hiddenList.push('PROGRAM');
31930
31940
  this.getCategoryList();
31931
31941
  }
31942
+ this.loader = false;
31932
31943
  },
31933
31944
  });
31934
31945
  }
31935
- ngOnInit() {
31936
- this.setFeatureFlags();
31937
- this.pickerChanged.emit(false);
31938
- this.getInitialData();
31939
- this.populateRCList();
31940
- }
31941
31946
  populateRCList() {
31942
31947
  if (this.openedFrom === 'RISK_TREATMENT' && this.mode === 'CREATE') {
31943
31948
  this.getRCList();
@@ -31980,18 +31985,20 @@ class WorkflowComplianceComponent {
31980
31985
  this.hideElementsFromMoreOptions.emit(this.hiddenList);
31981
31986
  }
31982
31987
  checkCustomFields() {
31983
- console.log("customFields ==>", this.customFields);
31984
31988
  if (!this.customFields?.length) {
31985
- console.log('No custom fields');
31986
- this.hiddenList.push('CUSTOM_FIELDS');
31987
- this.hideElementsFromMoreOptions.emit(this.hiddenList);
31989
+ if (!this.hiddenList.includes('CUSTOM_FIELDS')) {
31990
+ this.hiddenList.push('CUSTOM_FIELDS');
31991
+ }
31988
31992
  }
31993
+ this.hideElementsFromMoreOptions.emit(this.hiddenList);
31989
31994
  }
31990
31995
  getRCDetailsinRiskTreatment() {
31991
31996
  this.responsibilityForm.rc = this.setList(this.responsibilityCentersList, [this.selectedRC], 'item_id');
31992
31997
  this.moreOptions.RC = true;
31993
31998
  }
31994
31999
  getOrgDetails() {
32000
+ this.uiKitService.isLoader = true;
32001
+ this.entrustLoader = true;
31995
32002
  this.organizationCommonService?.getOrgDetailsInfo()?.subscribe({
31996
32003
  next: (res) => {
31997
32004
  this.isRiskEnable = res?.enable_riskclass ? true : false;
@@ -31999,9 +32006,13 @@ class WorkflowComplianceComponent {
31999
32006
  this.hiddenList.push('RISK_CLASSIFICATION');
32000
32007
  this.hideElementsFromMoreOptions.emit(this.hiddenList);
32001
32008
  }
32009
+ this.uiKitService.isLoader = false;
32010
+ this.entrustLoader = false;
32002
32011
  },
32003
32012
  error: (err) => {
32004
32013
  console.error(err);
32014
+ this.uiKitService.isLoader = false;
32015
+ this.entrustLoader = false;
32005
32016
  },
32006
32017
  });
32007
32018
  }
@@ -40636,7 +40647,7 @@ class MoreOptionComponent {
40636
40647
  tooltipTitle: 'Custom Fields',
40637
40648
  tooltipMessage: `A custom field is a user-defined data field that allows you to capture information beyond the standard fields provided by the system.`,
40638
40649
  checked: false,
40639
- hidden: true,
40650
+ hidden: false,
40640
40651
  isDisabled: false,
40641
40652
  code: 'CUSTOM_FIELDS',
40642
40653
  },