aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-07-02 18:45:45 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-07-02 18:45:45 -0400
commitb5d1df2ef286a615f9bad1077c33da91ac0416d9 (patch)
tree700bed014076c41ce4895bda1a1531bd4fe775e8 /src/client/views/collections/CollectionSchemaView.tsx
parentd8fe61a05e676fb9e44a191b6090d3274963e836 (diff)
filtering in title text boxes of schema, also big css fixes
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaView.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 3c42a2f1c..e8c1faff5 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -310,7 +310,8 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
@undoBatch
@action
- changeColumns = (oldKey: string, newKey: string, addNew: boolean) => {
+ changeColumns = (oldKey: string, newKey: string, addNew: boolean, filter?: string) => {
+ console.log("COL");
const columns = this.columns;
if (columns === undefined) {
this.columns = new List<SchemaHeaderField>([new SchemaHeaderField(newKey, "f1efeb")]);
@@ -325,6 +326,11 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) {
column.setHeading(newKey);
columns[index] = column;
this.columns = columns;
+ if (filter) {
+ console.log(newKey);
+ console.log(filter);
+ Doc.setDocFilter(this.props.Document, newKey, filter, "match");
+ }
}
}
}