diff options
author | mehekj <mehek.jethani@gmail.com> | 2023-03-22 16:55:26 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2023-03-22 16:55:26 -0400 |
commit | 1be46d0193752c4158cf327b8d3f7421b2d1b60f (patch) | |
tree | 51a08cbfb89a9931101deeddd3034aeeaf4811b7 /src | |
parent | 448b04afae562f9c34bc23379d4ce7d84de579d3 (diff) |
updated component library
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index 7a65b4436..4498a2258 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -27,6 +27,7 @@ import { DefaultStyleProvider } from '../../StyleProvider'; import { DocumentManager } from '../../../util/DocumentManager'; import { ScriptField } from '../../../../fields/ScriptField'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { IconButton } from 'browndash-components'; export enum ColumnType { Number, @@ -889,10 +890,18 @@ export class CollectionSchemaView extends CollectionSubView() { <div className="schema-header-button" onPointerDown={e => { - this.openColumnMenu(-1, true); + this._columnMenuIndex && this._columnMenuIndex === -1 ? this.closeColumnMenu() : this.openColumnMenu(-1, true); }}> <FontAwesomeIcon icon="plus" /> </div> + {/* <IconButton + icon={<FontAwesomeIcon icon="plus" />} + onPointerDown={e => { + console.log('clicked'); + this._columnMenuIndex && this._columnMenuIndex === -1 ? this.closeColumnMenu() : this.openColumnMenu(-1, true); + e.stopPropagation(); + }} + /> */} </div> {this.columnKeys.map((key, index) => { return ( |