diff options
| author | Stanley Yip <33562077+yipstanley@users.noreply.github.com> | 2019-07-29 18:59:22 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-29 18:59:22 +0000 |
| commit | 1476b04c1549399727fc207e7b6ffce83f7715b3 (patch) | |
| tree | 69961bd5438b6638966517ee83eb1ec8c4edf8db /src/client/views/collections/CollectionStackingViewFieldColumn.tsx | |
| parent | 93df48fe22f4152878e3a74e0366668fbbab895e (diff) | |
| parent | 1b672029cdcbd56b312891b5f0d78eaaa8c78b28 (diff) | |
Merge pull request #227 from browngraphicslab/toggle_claire
+ ADD / ADD GROUP does not show if chromeStatus is disabled
Diffstat (limited to 'src/client/views/collections/CollectionStackingViewFieldColumn.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackingViewFieldColumn.tsx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx index aa86d9a54..5af601b8f 100644 --- a/src/client/views/collections/CollectionStackingViewFieldColumn.tsx +++ b/src/client/views/collections/CollectionStackingViewFieldColumn.tsx @@ -279,10 +279,11 @@ export class CollectionStackingViewFieldColumn extends React.Component<CSVFieldC {this.children(this.props.docList)} {singleColumn ? (null) : this.props.parent.columnDragger} </div> - <div key={`${heading}-add-document`} className="collectionStackingView-addDocumentButton" - style={{ width: style.columnWidth / (uniqueHeadings.length + 1) }}> - <EditableView {...newEditableViewProps} /> - </div> + {(this.props.parent.props.CollectionView.props.Document.chromeStatus !== 'disabled') ? + <div key={`${heading}-add-document`} className="collectionStackingView-addDocumentButton" + style={{ width: style.columnWidth / (uniqueHeadings.length + 1) }}> + <EditableView {...newEditableViewProps} /> + </div> : null} </div> ); } |
