tnx-shared 5.3.236 → 5.3.238

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.
@@ -21677,7 +21677,13 @@ class ListComponentBase extends ComponentBase {
21677
21677
  }
21678
21678
  this.addButtonAction(lstBtnAction, buttonText);
21679
21679
  }
21680
- const lstMenuButtons = (_e = yield this.menuButtons({})) !== null && _e !== void 0 ? _e : [];
21680
+ let lstMenuButtons;
21681
+ try {
21682
+ lstMenuButtons = (_e = yield this.menuButtons({})) !== null && _e !== void 0 ? _e : [];
21683
+ }
21684
+ catch (_g) {
21685
+ lstMenuButtons = [];
21686
+ }
21681
21687
  if (lstMenuButtons.length) {
21682
21688
  lstMenuButtons.forEach(item => this.addButtonAction(lstBtnAction, item.label));
21683
21689
  }
@@ -21735,7 +21741,13 @@ class ListComponentBase extends ComponentBase {
21735
21741
  }
21736
21742
  sessionStorage.setItem(ComCtxConstants.LOCALSTORAGE_KEY.BUTTON_AUTHORIZE, JSON.stringify(buttonSetting));
21737
21743
  const lstMenuButton = [];
21738
- const lstMenuButtons = (_b = yield this.menuButtons({})) !== null && _b !== void 0 ? _b : [];
21744
+ let lstMenuButtons;
21745
+ try {
21746
+ lstMenuButtons = (_b = yield this.menuButtons({})) !== null && _b !== void 0 ? _b : [];
21747
+ }
21748
+ catch (_c) {
21749
+ lstMenuButtons = [];
21750
+ }
21739
21751
  if (!lstMenuButtons.length) {
21740
21752
  this.isBtnReady = true;
21741
21753
  return;
@@ -30002,7 +30014,7 @@ class FileManagerComponent extends DataListBase {
30002
30014
  label: 'Xem các phiên bản khác', icon: 'fas fa-history', command: () => {
30003
30015
  this.openFileVersions(item);
30004
30016
  },
30005
- visible: !this.checkIsReadOnly() || !this.showFileVersion
30017
+ visible: !this.checkIsReadOnly() && this.showFileVersion
30006
30018
  },
30007
30019
  {
30008
30020
  label: 'Xóa tệp tin', icon: 'far fa-trash-alt', command: () => {