diff options
author | eeng5 <eleanor_eng@brown.edu> | 2019-09-28 16:53:13 -0400 |
---|---|---|
committer | eeng5 <eleanor_eng@brown.edu> | 2019-09-28 16:53:13 -0400 |
commit | 16e511e35ecbe6166ced813d27884b367f6c6fbb (patch) | |
tree | cbe280e4ed0d9333ed8eb5f635236da38a581d88 /src/client/views/collections/CollectionStackingViewFieldColumn.tsx | |
parent | 7e4dc0b2b2c604c60ffdfbaeb3eda95fa8221a06 (diff) |
delete and menu button for group header
Diffstat (limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')
-rw-r--r-- | src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx index b04e1fc73..e94a7d7f6 100644 --- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx +++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx @@ -257,10 +257,7 @@ export class CollectionStackingViewFieldColumn extends React.Component<CSVFieldC return ( <div className="collectionStackingView-optionPicker"> <div className="optionOptions"> - <div className="optionPicker" onClick={() => this.deleteColumn()}>Delete</div> - <div className="optionPicker">Edit</div> - <div className="optionPicker">Collapse</div> - <div className="optionPicker">Alias</div> + <div className="optionPicker">Create Alias</div> </div> </div> ); @@ -325,11 +322,16 @@ export class CollectionStackingViewFieldColumn extends React.Component<CSVFieldC <div className="collectionStackingView-sectionColor"> <Flyout anchorPoint={anchorPoints.CENTER_RIGHT} content={this.renderColorPicker()}> <button className="collectionStackingView-sectionColorButton"> - <FontAwesomeIcon icon="palette" size="sm" /> + <FontAwesomeIcon icon="palette" size="lg" /> </button> </ Flyout > </div> } + {evContents === `NO ${key.toUpperCase()} VALUE` ? + (null) : + <button className="collectionStackingView-sectionDelete" onClick={this.deleteColumn}> + <FontAwesomeIcon icon="trash" size="lg" /> + </button>} {evContents === `NO ${key.toUpperCase()} VALUE` ? (null) : <div className="collectionStackingView-sectionOptions"> <Flyout anchorPoint={anchorPoints.CENTER_RIGHT} content={this.renderMenu()}> |