UI: Add custom translate for description columns fixed show null
This commit is contained in:
parent
3ddb3300f3
commit
a589da7f9f
@ -60,7 +60,7 @@ export class AssetProfilesTableConfigResolver {
|
|||||||
new DateEntityTableColumn<AssetProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
|
new DateEntityTableColumn<AssetProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
|
||||||
new EntityTableColumn<AssetProfile>('name', 'asset-profile.name', '50%'),
|
new EntityTableColumn<AssetProfile>('name', 'asset-profile.name', '50%'),
|
||||||
new EntityTableColumn<AssetProfile>('description', 'asset-profile.description', '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',
|
new EntityTableColumn<AssetProfile>('isDefault', 'asset-profile.default', '60px',
|
||||||
entity => {
|
entity => {
|
||||||
return checkBoxCell(entity.default);
|
return checkBoxCell(entity.default);
|
||||||
|
|||||||
@ -78,7 +78,7 @@ export class DeviceProfilesTableConfigResolver {
|
|||||||
return this.translate.instant(deviceTransportTypeTranslationMap.get(deviceProfile.transportType));
|
return this.translate.instant(deviceTransportTypeTranslationMap.get(deviceProfile.transportType));
|
||||||
}),
|
}),
|
||||||
new EntityTableColumn<DeviceProfile>('description', 'device-profile.description', '40%',
|
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',
|
new EntityTableColumn<DeviceProfile>('isDefault', 'device-profile.default', '60px',
|
||||||
entity => {
|
entity => {
|
||||||
return checkBoxCell(entity.default);
|
return checkBoxCell(entity.default);
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export class TenantProfilesTableConfigResolver {
|
|||||||
new DateEntityTableColumn<TenantProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
|
new DateEntityTableColumn<TenantProfile>('createdTime', 'common.created-time', this.datePipe, '150px'),
|
||||||
new EntityTableColumn<TenantProfile>('name', 'tenant-profile.name', '40%'),
|
new EntityTableColumn<TenantProfile>('name', 'tenant-profile.name', '40%'),
|
||||||
new EntityTableColumn<TenantProfile>('description', 'tenant-profile.description', '60%',
|
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',
|
new EntityTableColumn<TenantProfile>('isDefault', 'tenant-profile.default', '60px',
|
||||||
entity => {
|
entity => {
|
||||||
return checkBoxCell(entity.default);
|
return checkBoxCell(entity.default);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user