mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
list settings allows custom label
This commit is contained in:
@@ -172,18 +172,18 @@ class RecordListSettingsView extends View {
|
||||
const list = this.layoutProvider() || [];
|
||||
const map = this.helper.getHiddenColumnMap() || {};
|
||||
|
||||
return list.filter(item => item.name && !item.link && !item.noLabel && !item.customLabel)
|
||||
return list.filter(item => item.name && !item.link && !item.noLabel && item.customLabel !== '')
|
||||
.map(item => {
|
||||
const label = item.label || item.name;
|
||||
const hidden = (item.name in map) ? map[item.name] : !!item.hidden;
|
||||
|
||||
return {
|
||||
name: item.name,
|
||||
label: this.translate(label, 'fields', this.entityType),
|
||||
label: item.customLabel ?? this.translate(label, 'fields', this.entityType),
|
||||
hidden: hidden,
|
||||
hiddenDefault: !!item.hidden,
|
||||
};
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user