@senior-gestao-pessoas/payroll-core 9.4.0-a2b681f9-a571-4777-98be-54dae032ce6f → 9.4.0-ebf1efc2-fe91-41f8-a0c0-009bafadc393

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.
@@ -9483,7 +9483,7 @@
9483
9483
  },
9484
9484
  },
9485
9485
  {
9486
- visible: _this.isEditMode,
9486
+ visible: !!(!_this.isEditMode && _this.withSideBar),
9487
9487
  label: _this.translateService.instant("hcm.payroll.edit"),
9488
9488
  command: function () {
9489
9489
  if (_this.isAllowToEditHistorical) {
@@ -10584,6 +10584,25 @@
10584
10584
  }
10585
10585
  },
10586
10586
  },
10587
+ {
10588
+ label: this.translateService.instant("hcm.payroll.edit"),
10589
+ command: function () {
10590
+ if (_this.isAllowToEditHistorical) {
10591
+ var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10592
+ if (_this.withSidebar) {
10593
+ _this.router.navigate(["historical-pix-account/" + dateChange], {
10594
+ relativeTo: _this.activatedRoute,
10595
+ });
10596
+ }
10597
+ else {
10598
+ _this.enableView.emit(dateChange);
10599
+ }
10600
+ }
10601
+ else {
10602
+ _this.isNotAllowMessage();
10603
+ }
10604
+ },
10605
+ },
10587
10606
  {
10588
10607
  label: this.translateService.instant("hcm.payroll.delete"),
10589
10608
  command: function () {
@@ -10668,6 +10687,13 @@
10668
10687
  enumerable: true,
10669
10688
  configurable: true
10670
10689
  });
10690
+ Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToEditHistorical", {
10691
+ get: function () {
10692
+ return (this.permission["editar"]);
10693
+ },
10694
+ enumerable: true,
10695
+ configurable: true
10696
+ });
10671
10697
  Object.defineProperty(HistoricalPixAccountListComponent.prototype, "isAllowToDeleteHistorical", {
10672
10698
  get: function () {
10673
10699
  return (this.permission["excluir"]);