diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-17 13:47:20 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-17 13:47:20 -0400 |
| commit | 32e4751eb2d0506b11405ace2c03213515e736cb (patch) | |
| tree | fb68e95fc8c81b3e2640159480f38a612f45ebe4 /src/client/views/collections/CollectionSchemaView.tsx | |
| parent | 227888ecdd9e83b9a2d99cb93890ae018274ea4d (diff) | |
| parent | 2c1e3a0c657914c7426ac7347bdb2781e1fa49bd (diff) | |
Merge pull request #619 from browngraphicslab/acls_uv
Hopefully final acls change
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index abaee0e16..a72b349ec 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -163,11 +163,6 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) { this.columns = columns; } - @action - typesDropdownChange = (bool: boolean) => { - this._openTypes = bool; - } - renderTypes = (col: any) => { if (columnTypes.get(col.heading)) return (null); @@ -231,10 +226,10 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) { type === ColumnType.Date ? dateType : imageType; return ( - <div className="collectionSchema-headerMenu-group"> - <div onClick={() => this.typesDropdownChange(!this._openTypes)}> - <label>Column type:</label> - <FontAwesomeIcon icon={"caret-down"} size="lg" style={{ float: "right" }} /> + <div className="collectionSchema-headerMenu-group" onClick={action(() => this._openTypes = !this._openTypes)}> + <div> + <label style={{ cursor: "pointer" }}>Column type:</label> + <FontAwesomeIcon icon={"caret-down"} size="lg" style={{ float: "right", transform: `rotate(${this._openTypes ? "180deg" : 0})`, transition: "0.2s all ease" }} /> </div> {this._openTypes ? allColumnTypes : justColType} </div > |
