@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.
@@ -9301,18 +9301,9 @@ var HistoricalPixAccountComponent = /** @class */ (function () {
9301
9301
  visible: _this.isEditMode,
9302
9302
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9303
9303
  command: function () {
9304
- if (_this.isAllowToViewHistorical && rowData) {
9305
- rowData["index"] = key;
9306
- _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9307
- _this.visible = true;
9308
- }
9309
- else {
9310
- _this.messageService.add({
9311
- severity: "error",
9312
- summary: _this.translateService.instant("hcm.payroll.error"),
9313
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
9314
- });
9315
- }
9304
+ rowData["index"] = key;
9305
+ _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9306
+ _this.visible = true;
9316
9307
  },
9317
9308
  },
9318
9309
  {
@@ -10367,23 +10358,14 @@ var HistoricalPixAccountListComponent = /** @class */ (function () {
10367
10358
  {
10368
10359
  label: this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
10369
10360
  command: function () {
10370
- if (_this.isAllowToViewHistorical && rowData) {
10371
- var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10372
- if (_this.withSidebar) {
10373
- _this.router.navigate(["historical-pix-account/" + dateChange], {
10374
- relativeTo: _this.activatedRoute,
10375
- });
10376
- }
10377
- else {
10378
- _this.enableView.emit(dateChange);
10379
- }
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
+ });
10380
10366
  }
10381
10367
  else {
10382
- _this.messageService.add({
10383
- severity: "error",
10384
- summary: _this.translateService.instant("hcm.payroll.error"),
10385
- detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
10386
- });
10368
+ _this.enableView.emit(dateChange);
10387
10369
  }
10388
10370
  },
10389
10371
  },