diff options
| author | fawn <fangrui_tong@brown.edu> | 2019-07-29 17:34:57 -0400 |
|---|---|---|
| committer | fawn <fangrui_tong@brown.edu> | 2019-07-29 17:34:57 -0400 |
| commit | 1190dc51c66cb48d48c16988f14100fd9a7004e2 (patch) | |
| tree | e633a1548d705851dca318d5c056e135a718c594 /src/client/views/collections/CollectionSchemaCells.tsx | |
| parent | f1cb6a2212b11ba6d18dfa2e800b2c8e4ad94a88 (diff) | |
color + type on schemaheaderfields fixed and schemas can toggle textwrapping
Diffstat (limited to 'src/client/views/collections/CollectionSchemaCells.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaCells.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaCells.tsx b/src/client/views/collections/CollectionSchemaCells.tsx index e06a5c66b..17dfd317d 100644 --- a/src/client/views/collections/CollectionSchemaCells.tsx +++ b/src/client/views/collections/CollectionSchemaCells.tsx @@ -108,7 +108,7 @@ export class CollectionSchemaCell extends React.Component<CellProps> { this._document[fieldKey] = de.data.draggedDocuments[0]; } else { - let coll = Docs.Create.SchemaDocument([new SchemaHeaderField("title", "f1efeb")], de.data.draggedDocuments, {}); + let coll = Docs.Create.SchemaDocument([new SchemaHeaderField("title", "#f1efeb")], de.data.draggedDocuments, {}); this._document[fieldKey] = coll; } e.stopPropagation(); @@ -284,7 +284,7 @@ export class CollectionSchemaCheckboxCell extends CollectionSchemaCell { this._isChecked = e.target.checked; let script = CompileScript(e.target.checked.toString(), { requiredType: "boolean", addReturn: true, params: { this: Doc.name } }); if (script.compiled) { - this.applyToDoc(this._document, script.run); + this.applyToDoc(this._document, this.props.row, this.props.col, script.run); } } |
