tnx-shared 5.3.390 → 5.3.392

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.
@@ -24796,12 +24796,12 @@ class CommonErrorCode {
24796
24796
  CommonErrorCode.ERROR_NOT_FOUND = 'ERR_NOT_FOUND';
24797
24797
  CommonErrorCode.ERROR_SERVICE_NOT_RUN = 0;
24798
24798
 
24799
- const getMenuData = (listMenuName, customPath = '') => {
24799
+ const getMenuData = (listMenuName, customPath = '', customEndpoint = '') => {
24800
24800
  const res = [];
24801
24801
  for (const menu of listMenuName) {
24802
24802
  res.push({
24803
24803
  fileName: menu,
24804
- dataMenus: getListMenuByName(menu, customPath)
24804
+ dataMenus: getListMenuByName(menu, customPath, customEndpoint)
24805
24805
  });
24806
24806
  }
24807
24807
  const op = [];
@@ -24819,11 +24819,14 @@ const getMenuData = (listMenuName, customPath = '') => {
24819
24819
  }
24820
24820
  return op;
24821
24821
  };
24822
- const getListMenuByName = (menu, customPath = '') => {
24822
+ const getListMenuByName = (menu, customPath = '', customEndpoint = '') => {
24823
24823
  const appXhr = new XMLHttpRequest();
24824
24824
  if (customPath) {
24825
24825
  appXhr.open('GET', customPath, false);
24826
24826
  }
24827
+ else if (customEndpoint) {
24828
+ appXhr.open('GET', `${customEndpoint}/assets/menus/${menu}.json`, false);
24829
+ }
24827
24830
  else {
24828
24831
  appXhr.open('GET', `assets/menus/${menu}.json`, false);
24829
24832
  }
@@ -31473,8 +31476,13 @@ class FileManagerComponent extends DataListBase {
31473
31476
  // Tải thư mục/ tệp.
31474
31477
  download(explorerItem) {
31475
31478
  return __awaiter(this, void 0, void 0, function* () {
31476
- const model = this._downloadLinkService.getGenerateDownloadLinkModel(explorerItem);
31477
- this._downloadLinkService.downloadLink(model);
31479
+ this._notifierService.showConfirm(`<b>Lưu ý!</b><br/><br/>Xác nhận tải về?`, 'Thông báo')
31480
+ .then((confirm) => __awaiter(this, void 0, void 0, function* () {
31481
+ if (!confirm)
31482
+ return;
31483
+ const model = this._downloadLinkService.getGenerateDownloadLinkModel(explorerItem);
31484
+ this._downloadLinkService.downloadLink(model);
31485
+ }));
31478
31486
  });
31479
31487
  }
31480
31488
  copyDownloadLink(explorerItem) {