vcomply-workflow-engine 3.1.49 → 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.
@@ -5459,6 +5459,18 @@ class GrcObjectContainerComponent {
5459
5459
  this.resetForm = new EventEmitter();
5460
5460
  this.hideElementsFromMoreOptions = new EventEmitter();
5461
5461
  this.hideMoreOption = [];
5462
+ }
5463
+ ngOnDestroy() {
5464
+ this.resetGRCForm();
5465
+ }
5466
+ ngOnInit() {
5467
+ this.grcPayload = JSON.parse(JSON.stringify(this.grcService.GRC_PAYLOAD));
5468
+ this.grcPayload.type = this.grcType;
5469
+ this.listObject = this.grcService.LIST_OBJECT;
5470
+ this.getMoreOptionsPermission();
5471
+ this._initiateAPI();
5472
+ }
5473
+ getMoreOptionsPermission() {
5462
5474
  this.authService.getUserInfo().subscribe((res) => {
5463
5475
  var _a;
5464
5476
  const riskPermission = res === null || res === void 0 ? void 0 : res.roleActions[(_a = res === null || res === void 0 ? void 0 : res.roleActions) === null || _a === void 0 ? void 0 : _a.findIndex((ele) => (ele === null || ele === void 0 ? void 0 : ele.moduleName) == 'risk')];
@@ -5470,15 +5482,6 @@ class GrcObjectContainerComponent {
5470
5482
  console.log('===========================>', this.hideMoreOption, riskPermission);
5471
5483
  });
5472
5484
  }
5473
- ngOnDestroy() {
5474
- this.resetGRCForm();
5475
- }
5476
- ngOnInit() {
5477
- this.grcPayload = JSON.parse(JSON.stringify(this.grcService.GRC_PAYLOAD));
5478
- this.grcPayload.type = this.grcType;
5479
- this.listObject = this.grcService.LIST_OBJECT;
5480
- this._initiateAPI();
5481
- }
5482
5485
  //TODO: implement this
5483
5486
  populateOptionalFields() {
5484
5487
  const activatedOptions = [];