tnx-shared 5.3.235 → 5.3.237

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.
@@ -29583,6 +29583,7 @@ class FileManagerComponent extends DataListBase {
29583
29583
  this.useBreadcrumbs = true;
29584
29584
  this.useSignature = true;
29585
29585
  this.entityKeyPicker = '';
29586
+ this.showFileVersion = true;
29586
29587
  this._moduleConfig = this._moduleConfigService.getConfig();
29587
29588
  this.apiUploadUrl = this._fileObjectService.getUploadUrl();
29588
29589
  this.userId = this._userService.getUserIdCombine();
@@ -29645,6 +29646,9 @@ class FileManagerComponent extends DataListBase {
29645
29646
  if (!this.control) {
29646
29647
  this.control = new FileManagerControlSchema();
29647
29648
  }
29649
+ if (this._moduleConfig.environment['hiddenFileVersionIsNotSuperAdmin'] && !this._userService.isSuperUser()) {
29650
+ this.showFileVersion = false;
29651
+ }
29648
29652
  this.setting.hiddenAuthorizeButton = true;
29649
29653
  this.useBreadcrumbs = this.control.useBreadcrumbs;
29650
29654
  this.useSignature = this.control.useSignature;
@@ -29810,7 +29814,7 @@ class FileManagerComponent extends DataListBase {
29810
29814
  name: 'Ngày tạo',
29811
29815
  fullName: 'Ngày tạo',
29812
29816
  description: 'Ngày tạo',
29813
- dataType: 'datetime',
29817
+ dataType: 'datetime'
29814
29818
  }),
29815
29819
  new ModelSchema({
29816
29820
  field: 'currentFileVersion',
@@ -29850,13 +29854,15 @@ class FileManagerComponent extends DataListBase {
29850
29854
  field: 'created',
29851
29855
  dataType: 'datetime',
29852
29856
  sort: true,
29853
- width: '10em'
29857
+ width: '10em',
29858
+ visible: this.showFileVersion
29854
29859
  }),
29855
29860
  new ColumnSchemaBase({
29856
29861
  field: 'currentFileVersion',
29857
29862
  width: '8em',
29858
29863
  textAlign: 1,
29859
- allowFilter: false
29864
+ allowFilter: false,
29865
+ visible: this.showFileVersion
29860
29866
  }),
29861
29867
  ];
29862
29868
  this.initSetting();
@@ -29996,7 +30002,7 @@ class FileManagerComponent extends DataListBase {
29996
30002
  label: 'Xem các phiên bản khác', icon: 'fas fa-history', command: () => {
29997
30003
  this.openFileVersions(item);
29998
30004
  },
29999
- visible: !this.checkIsReadOnly()
30005
+ visible: !this.checkIsReadOnly() && this.showFileVersion
30000
30006
  },
30001
30007
  {
30002
30008
  label: 'Xóa tệp tin', icon: 'far fa-trash-alt', command: () => {