tnx-shared 5.3.235 → 5.3.236
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.
- package/bundles/tnx-shared.umd.js +10 -4
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/file-explorer/file-manager/file-manager.component.d.ts +1 -0
- package/components/file-explorer/file-manager/file-manager.component.d.ts.map +1 -1
- package/esm2015/components/file-explorer/file-manager/file-manager.component.js +11 -5
- package/fesm2015/tnx-shared.js +10 -4
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -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: () => {
|