aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionMasonryViewFieldRow.tsx
diff options
context:
space:
mode:
authoreeng5 <eleanor_eng@brown.edu>2019-09-28 16:53:13 -0400
committereeng5 <eleanor_eng@brown.edu>2019-09-28 16:53:13 -0400
commit16e511e35ecbe6166ced813d27884b367f6c6fbb (patch)
treecbe280e4ed0d9333ed8eb5f635236da38a581d88 /src/client/views/collections/CollectionMasonryViewFieldRow.tsx
parent7e4dc0b2b2c604c60ffdfbaeb3eda95fa8221a06 (diff)
delete and menu button for group header
Diffstat (limited to 'src/client/views/collections/CollectionMasonryViewFieldRow.tsx')
-rw-r--r--src/client/views/collections/CollectionMasonryViewFieldRow.tsx26
1 files changed, 23 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionMasonryViewFieldRow.tsx b/src/client/views/collections/CollectionMasonryViewFieldRow.tsx
index 38f7493de..ad84b7635 100644
--- a/src/client/views/collections/CollectionMasonryViewFieldRow.tsx
+++ b/src/client/views/collections/CollectionMasonryViewFieldRow.tsx
@@ -261,6 +261,17 @@ export class CollectionMasonryViewFieldRow extends React.Component<CMVFieldRowPr
);
}
+ renderMenu = () => {
+ let selected = this.props.headingObject ? this.props.headingObject.color : "#f1efeb";
+ return (
+ <div className="collectionStackingView-optionPicker">
+ <div className="optionOptions">
+ <div className="optionPicker">Create Alias</div>
+ </div>
+ </div>
+ );
+ }
+
@observable private collapsed: boolean = false;
private toggleVisibility = action(() => {
@@ -327,10 +338,19 @@ export class CollectionMasonryViewFieldRow extends React.Component<CMVFieldRowPr
</ Flyout >
</div>
}
+ {evContents === `NO ${key.toUpperCase()} VALUE` ?
+ (null) :
+ <button className="collectionStackingView-sectionDelete" onClick={this.deleteRow}>
+ <FontAwesomeIcon icon="trash" size="lg" />
+ </button>}
{evContents === `NO ${key.toUpperCase()} VALUE` ? (null) :
- <button className="collectionStackingView-sectionOptions" onClick={this.deleteRow}>
- <FontAwesomeIcon icon="ellipsis-v" size="lg"></FontAwesomeIcon>
- </button>
+ <div className="collectionStackingView-sectionOptions">
+ <Flyout anchorPoint={anchorPoints.CENTER_RIGHT} content={this.renderMenu()}>
+ <button className="collectionStackingView-sectionOptionButton">
+ <FontAwesomeIcon icon="ellipsis-v" size="lg"></FontAwesomeIcon>
+ </button>
+ </Flyout>
+ </div>
}
</div>
</div > : (null);