Limit render of Done Editing button to cell types that support annotations

pull/10616/head
Alex P 2018-03-28 10:36:41 -07:00 committed by Iris Scholten
parent 5863a5e764
commit f3cdfa923d
1 changed files with 10 additions and 9 deletions

View File

@ -96,7 +96,8 @@ class LayoutCellMenu extends Component {
/> />
</div> </div>
)} )}
{mode === 'editing' && ( {mode === 'editing' &&
cellSupportsAnnotations(cell.type) && (
<div className="dash-graph-context--buttons"> <div className="dash-graph-context--buttons">
<div <div
className="btn btn-xs btn-success" className="btn btn-xs btn-success"