mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Mappings improvements
Summary: - Adding new icon for calendar view (the old one by just bigger) - When there are no columns to map the select box is grayed out - Optional mappings can be cleared now Test Plan: Added Reviewers: JakubSerafin Reviewed By: JakubSerafin Subscribers: JakubSerafin Differential Revision: https://phab.getgrist.com/D4066
This commit is contained in:
@@ -25,7 +25,9 @@ export class ColumnToMapImpl implements Required<ColumnToMap> {
|
||||
this.description = typeof def === 'string' ? '' : (def.description ?? '');
|
||||
this.optional = typeof def === 'string' ? false : (def.optional ?? false);
|
||||
this.type = typeof def === 'string' ? 'Any' : (def.type ?? 'Any');
|
||||
this.typeDesc = String(UserType.typeDefs[this.type]?.label ?? "any").toLowerCase();
|
||||
this.type = this.type.split(',').map(t => t.trim()).filter(Boolean).join(',');
|
||||
this.typeDesc = this.type.split(',')
|
||||
.map(t => String(UserType.typeDefs[t]?.label ?? "any").toLowerCase()).join(', ');
|
||||
this.allowMultiple = typeof def === 'string' ? false : (def.allowMultiple ?? false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user