UI: Add custom translate for description columns fixed show null

This commit is contained in:
Vladyslav_Prykhodko 2024-11-26 17:40:40 +02:00
parent 3ddb3300f3
commit a589da7f9f
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ export class AssetProfilesTableConfigResolver {
new DateEntityTableColumn<AssetProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
new EntityTableColumn<AssetProfile>('name', 'asset-profile.name', '50%'),
new EntityTableColumn<AssetProfile>('description', 'asset-profile.description', '50%',
entity => this.customTranslate.transform(entity.description)),
entity => this.customTranslate.transform(entity.description || '')),
new EntityTableColumn<AssetProfile>('isDefault', 'asset-profile.default', '60px',
entity => {
return checkBoxCell(entity.default);

View File

@ -78,7 +78,7 @@ export class DeviceProfilesTableConfigResolver {
return this.translate.instant(deviceTransportTypeTranslationMap.get(deviceProfile.transportType));
}),
new EntityTableColumn<DeviceProfile>('description', 'device-profile.description', '40%',
entity => this.customTranslate.transform(entity.description)),
entity => this.customTranslate.transform(entity.description || '')),
new EntityTableColumn<DeviceProfile>('isDefault', 'device-profile.default', '60px',
entity => {
return checkBoxCell(entity.default);

View File

@ -58,7 +58,7 @@ export class TenantProfilesTableConfigResolver {
new DateEntityTableColumn<TenantProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
new EntityTableColumn<TenantProfile>('name', 'tenant-profile.name', '40%'),
new EntityTableColumn<TenantProfile>('description', 'tenant-profile.description', '60%',
entity => this.customTranslate.transform(entity.description)),
entity => this.customTranslate.transform(entity.description || '')),
new EntityTableColumn<TenantProfile>('isDefault', 'tenant-profile.default', '60px',
entity => {
return checkBoxCell(entity.default);