@senior-gestao-pessoas/payroll-core 9.3.0-f0e95122-ee14-4fff-b114-c382ed3407eb → 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.
@@ -9467,18 +9467,9 @@
9467
9467
  visible: _this.isEditMode,
9468
9468
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9469
9469
  command: function () {
9470
- if (_this.isAllowToViewHistorical && rowData) {
9471
- rowData["index"] = key;
9472
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9473
- _this.visible = true;
9474
- }
9475
- else {
9476
- _this.messageService.add({
9477
- severity: "error",
9478
- summary: _this.translateService.instant("hcm.payroll.error"),
9479
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9480
- });
9481
- }
9470
+ rowData["index"] = key;
9471
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9472
+ _this.visible = true;
9482
9473
  },
9483
9474
  },
9484
9475
  {
@@ -10533,23 +10524,14 @@
10533
10524
  {
10534
10525
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10535
10526
  command: function () {
10536
- if (_this.isAllowToViewHistorical && rowData) {
10537
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10538
- if (_this.withSidebar) {
10539
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10540
- relativeTo: _this.activatedRoute,
10541
- });
10542
- }
10543
- else {
10544
- _this.enableView.emit(dateChange);
10545
- }
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
+ });
10546
10532
  }
10547
10533
  else {
10548
- _this.messageService.add({
10549
- severity: "error",
10550
- summary: _this.translateService.instant("hcm.payroll.error"),
10551
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10552
- });
10534
+ _this.enableView.emit(dateChange);
10553
10535
  }
10554
10536
  },
10555
10537
  },