tnx-shared 5.3.234 → 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.
@@ -33876,6 +33876,7 @@
33876
33876
  _this.useBreadcrumbs = true;
33877
33877
  _this.useSignature = true;
33878
33878
  _this.entityKeyPicker = '';
33879
+ _this.showFileVersion = true;
33879
33880
  _this._moduleConfig = _this._moduleConfigService.getConfig();
33880
33881
  _this.apiUploadUrl = _this._fileObjectService.getUploadUrl();
33881
33882
  _this.userId = _this._userService.getUserIdCombine();
@@ -33960,6 +33961,9 @@
33960
33961
  if (!this.control) {
33961
33962
  this.control = new FileManagerControlSchema();
33962
33963
  }
33964
+ if (this._moduleConfig.environment['hiddenFileVersionIsNotSuperAdmin'] && !this._userService.isSuperUser()) {
33965
+ this.showFileVersion = false;
33966
+ }
33963
33967
  this.setting.hiddenAuthorizeButton = true;
33964
33968
  this.useBreadcrumbs = this.control.useBreadcrumbs;
33965
33969
  this.useSignature = this.control.useSignature;
@@ -34130,7 +34134,7 @@
34130
34134
  name: 'Ngày tạo',
34131
34135
  fullName: 'Ngày tạo',
34132
34136
  description: 'Ngày tạo',
34133
- dataType: 'datetime',
34137
+ dataType: 'datetime'
34134
34138
  }),
34135
34139
  new ModelSchema({
34136
34140
  field: 'currentFileVersion',
@@ -34170,13 +34174,15 @@
34170
34174
  field: 'created',
34171
34175
  dataType: 'datetime',
34172
34176
  sort: true,
34173
- width: '10em'
34177
+ width: '10em',
34178
+ visible: this.showFileVersion
34174
34179
  }),
34175
34180
  new ColumnSchemaBase({
34176
34181
  field: 'currentFileVersion',
34177
34182
  width: '8em',
34178
34183
  textAlign: 1,
34179
- allowFilter: false
34184
+ allowFilter: false,
34185
+ visible: this.showFileVersion
34180
34186
  }),
34181
34187
  ];
34182
34188
  this.initSetting();
@@ -34318,7 +34324,7 @@
34318
34324
  label: 'Xem các phiên bản khác', icon: 'fas fa-history', command: function () {
34319
34325
  _this.openFileVersions(item);
34320
34326
  },
34321
- visible: !this.checkIsReadOnly()
34327
+ visible: !this.checkIsReadOnly() || !this.showFileVersion
34322
34328
  },
34323
34329
  {
34324
34330
  label: 'Xóa tệp tin', icon: 'far fa-trash-alt', command: function () {
@@ -54328,7 +54334,6 @@
54328
54334
  this.content = '';
54329
54335
  this.id = '';
54330
54336
  this.id = this._commonService.guid();
54331
- this.loadMathConfig();
54332
54337
  }
54333
54338
  // ngOnChanges(changes: SimpleChanges) {
54334
54339
  // if (changes['content']) {
@@ -54446,6 +54451,7 @@
54446
54451
  document.head.appendChild(script);
54447
54452
  };
54448
54453
  HtmlPreviewComponent.prototype.ngOnInit = function () {
54454
+ this.loadMathConfig();
54449
54455
  };
54450
54456
  return HtmlPreviewComponent;
54451
54457
  }());