vcomply-workflow-engine 3.1.36 → 3.1.38

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.
@@ -5403,7 +5403,7 @@ class GrcObjectContainerComponent {
5403
5403
  this.hideMoreOption = [];
5404
5404
  this.authService.getUserInfo().subscribe((res) => {
5405
5405
  const complianceSubmodule = res?.roleActions[res?.roleActions?.findIndex((ele) => ele.moduleName == 'risk')];
5406
- if (complianceSubmodule?.isActive !== 1) {
5406
+ if (complianceSubmodule?.isActive === 0) {
5407
5407
  this.hideMoreOption.push('LINK_RISK_CATEGORIES_RISKS');
5408
5408
  }
5409
5409
  this.hideElementsFromMoreOptions.emit(this.hideMoreOption);
@@ -5634,6 +5634,8 @@ class GrcObjectContainerComponent {
5634
5634
  item.label = OBJECT_LABEL[item?.label?.toUpperCase()] ?? item?.label;
5635
5635
  return item;
5636
5636
  });
5637
+ this.ORIGINAL_GRC_ATTRIBUTES = JSON.parse(JSON.stringify(this.OBJECT_TYPE));
5638
+ console.log('this.ORIGINAL_GRC_ATTRIBUTES', this.ORIGINAL_GRC_ATTRIBUTES);
5637
5639
  if (this.MODE === 'EDIT') {
5638
5640
  this.OBJECT_TYPE[this.grcType].attributes =
5639
5641
  this.grcPayload.attributes;
@@ -5805,6 +5807,8 @@ class GrcObjectContainerComponent {
5805
5807
  this.isFormSubmitted = false;
5806
5808
  this.isDuplicateName = false;
5807
5809
  this.uiKitService.isSmileyOn = false;
5810
+ this.OBJECT_TYPE = JSON.parse(JSON.stringify(this.ORIGINAL_GRC_ATTRIBUTES));
5811
+ this.setDefaultGRCObjectType();
5808
5812
  this.resetListObjectSelection();
5809
5813
  this.mapUserList({ data: this.listObject.OWNER.data.assigneesList });
5810
5814
  }
@@ -30004,7 +30008,7 @@ class MoreOptionComponent {
30004
30008
  tooltipTitle: 'LINK RISKS',
30005
30009
  tooltipMessage: `This option lets you link a GRC Object with related risks.`,
30006
30010
  checked: false,
30007
- hidden: true,
30011
+ hidden: false,
30008
30012
  code: 'LINK_RISK_CATEGORIES_RISKS',
30009
30013
  },
30010
30014
  {