tnx-shared 5.3.170 → 5.3.171

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.
@@ -22097,6 +22097,7 @@
22097
22097
  if (!this.serviceCode && this.setting.baseService) {
22098
22098
  this.serviceCode = this.setting.baseService.serviceCode;
22099
22099
  }
22100
+ this.isBtnReady = this.setting.hiddenAuthorizeButton;
22100
22101
  if (this.authorizePath) {
22101
22102
  this.authorizePaths[ComCtxConstants.COMMON.ADD] = this.authorizePath + "/ADD";
22102
22103
  this.authorizePaths[ComCtxConstants.COMMON.EDIT] = this.authorizePath + "/EDIT";
@@ -26385,13 +26386,9 @@
26385
26386
  ListBase.prototype.setAuthorizeButtons = function () {
26386
26387
  return __awaiter(this, void 0, void 0, function () {
26387
26388
  return __generator(this, function (_a) {
26388
- if (this.setting.hiddenAuthorizeButton) {
26389
- if (this.crudList) {
26390
- this.crudList.setBtnReady(true);
26391
- }
26392
- return [2 /*return*/];
26389
+ if (this.crudList && !this.setting.hiddenAuthorizeButton) {
26390
+ this.crudList.setAuthorizeButton(this.lstButtonElement[exports.EnumProperties.RESULTS]);
26393
26391
  }
26394
- this.crudList.setAuthorizeButton(this.lstButtonElement[exports.EnumProperties.RESULTS]);
26395
26392
  return [2 /*return*/];
26396
26393
  });
26397
26394
  });