@senior-gestao-pessoas/payroll-core 9.3.0-06538e11-08fa-4c6f-9e67-58f132131fe8 → 9.3.0-0a28751a-09d5-4c6f-ad82-be2566554925

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,12 +9467,15 @@
9467
9467
  visible: _this.isEditMode,
9468
9468
  label: _this.translateService.instant("hcm.payroll.employees_image_cropper_view"),
9469
9469
  command: function () {
9470
+ console.log('CAALING VIEW');
9470
9471
  if (_this.isAllowToViewHistorical) {
9472
+ console.log('IS ALLOW TO VIEW');
9471
9473
  rowData["index"] = key;
9472
9474
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: false };
9473
9475
  _this.visible = true;
9474
9476
  }
9475
9477
  else {
9478
+ console.log('IS NOT ALLOW TO VIEW');
9476
9479
  _this.isNotAllowMessage();
9477
9480
  }
9478
9481
  },
@@ -9481,12 +9484,15 @@
9481
9484
  visible: !!(!_this.isEditMode && _this.withSideBar),
9482
9485
  label: _this.translateService.instant("hcm.payroll.edit"),
9483
9486
  command: function () {
9487
+ console.log('CAALING EDIT');
9484
9488
  if (_this.isAllowToEditHistorical) {
9489
+ console.log('IS ALLOW TO EDIT');
9485
9490
  rowData["index"] = key;
9486
9491
  _this.pixAccountItemInput = { currentItem: rowData, listData: _this.listDataNoPage, isEditMode: true };
9487
9492
  _this.visible = true;
9488
9493
  }
9489
9494
  else {
9495
+ console.log('IS NOT ALLOW TO EDIT');
9490
9496
  _this.isNotAllowMessage();
9491
9497
  }
9492
9498
  },
@@ -9495,11 +9501,14 @@
9495
9501
  visible: !_this.isEditMode,
9496
9502
  label: _this.translateService.instant("hcm.payroll.delete"),
9497
9503
  command: function () {
9504
+ console.log('CAALING DELETE');
9498
9505
  if (_this.isAllowToDeleteHistorical) {
9506
+ console.log('IS ALLOW TO DELETE');
9499
9507
  _this.loading = true;
9500
9508
  _this.deleteAnnuityItem(key);
9501
9509
  }
9502
9510
  else {
9511
+ console.log('IS NOT ALLOW TO DELETE');
9503
9512
  _this.isNotAllowMessage();
9504
9513
  }
9505
9514
  },
@@ -10539,12 +10548,12 @@
10539
10548
  if (_this.isAllowToViewHistorical) {
10540
10549
  var dateChange = rowData && rowData.dateChange && moment$e(rowData.dateChange, _this.dateFormat).format("YYYY-MM-DD");
10541
10550
  if (_this.withSidebar) {
10551
+ _this.isOnlyView.emit(true);
10542
10552
  _this.router.navigate(["historical-pix-account/" + dateChange], {
10543
10553
  relativeTo: _this.activatedRoute,
10544
10554
  });
10545
10555
  }
10546
10556
  else {
10547
- _this.isOnlyView.emit(true);
10548
10557
  _this.enableView.emit(dateChange);
10549
10558
  }
10550
10559
  }