@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.
@@ -9729,6 +9729,13 @@
9729
9729
  enumerable: true,
9730
9730
  configurable: true
9731
9731
  });
9732
+ Object.defineProperty(HistoricalPixAccountComponent.prototype, "isAllowToViewHistorical", {
9733
+ get: function () {
9734
+ return (this.permission["Visualizar"]);
9735
+ },
9736
+ enumerable: true,
9737
+ configurable: true
9738
+ });
9732
9739
  HistoricalPixAccountComponent.ctorParameters = function () { return [
9733
9740
  { type: core$1.TranslateService },
9734
9741
  { type: core.ChangeDetectorRef },
@@ -10517,23 +10524,14 @@
10517
10524
  {
10518
10525
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10519
10526
  command: function () {
10520
- if (_this.isAllowToViewHistorical && rowData) {
10521
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10522
- if (_this.withSidebar) {
10523
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10524
- relativeTo: _this.activatedRoute,
10525
- });
10526
- }
10527
- else {
10528
- _this.enableView.emit(dateChange);
10529
- }
10527
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10528
+ if (_this.withSidebar) {
10529
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10530
+ relativeTo: _this.activatedRoute,
10531
+ });
10530
10532
  }
10531
10533
  else {
10532
- _this.messageService.add({
10533
- severity: "error",
10534
- summary: _this.translateService.instant("hcm.payroll.error"),
10535
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10536
- });
10534
+ _this.enableView.emit(dateChange);
10537
10535
  }
10538
10536
  },
10539
10537
  },