@senior-gestao-pessoas/payroll-core 9.3.0-d99b0dbd-5fc0-4b98-979b-fe30c751fa36 → 9.3.0-fdc2ca03-c046-451a-bb4a-4d788fbde8cb

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.
@@ -9563,6 +9563,13 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9563
9563
  enumerable: true,
9564
9564
  configurable: true
9565
9565
  });
9566
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
9567
+ get: function () {
9568
+ return (this.permission["Visualizar"]);
9569
+ },
9570
+ enumerable: true,
9571
+ configurable: true
9572
+ });
9566
9573
  HistoricalPixAccountComponent.ctorParameters = function () { return [
9567
9574
  { type: TranslateService },
9568
9575
  { type: ChangeDetectorRef },
@@ -10351,23 +10358,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10351
10358
  {
10352
10359
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10353
10360
  command: function () {
10354
- if (_this.isAllowToViewHistorical && rowData) {
10355
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10356
- if (_this.withSidebar) {
10357
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10358
- relativeTo: _this.activatedRoute,
10359
- });
10360
- }
10361
- else {
10362
- _this.enableView.emit(dateChange);
10363
- }
10361
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10362
+ if (_this.withSidebar) {
10363
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10364
+ relativeTo: _this.activatedRoute,
10365
+ });
10364
10366
  }
10365
10367
  else {
10366
- _this.messageService.add({
10367
- severity: "error",
10368
- summary: _this.translateService.instant("hcm.payroll.error"),
10369
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10370
- });
10368
+ _this.enableView.emit(dateChange);
10371
10369
  }
10372
10370
  },
10373
10371
  },