This commit is contained in:
Jan Prochazka 2024-08-22 08:16:31 +02:00
parent 2b9fa9a70f
commit 869e837ee5

View File

@ -105,10 +105,10 @@ export class CollectionGridDisplay extends GridDisplay {
this.columns = analyseCollectionDisplayColumns([...(loadedRows || []), ...changedDocs, ...insertedDocs], this); this.columns = analyseCollectionDisplayColumns([...(loadedRows || []), ...changedDocs, ...insertedDocs], this);
this.filterable = true; this.filterable = true;
this.sortable = true; this.sortable = true;
this.editable = !readOnly; this.editable = !readOnly && collection?.uniqueKey?.length > 0;
this.supportsReload = true; this.supportsReload = true;
this.isDynamicStructure = true; this.isDynamicStructure = true;
this.changeSetKeyFields = ['_id']; this.changeSetKeyFields = collection?.uniqueKey?.map(x => x.columnName);
this.baseCollection = collection; this.baseCollection = collection;
} }
} }