From 51b4ed16eb9b94d12492dd6c568af3440b417430 Mon Sep 17 00:00:00 2001 From: Phillip Kelley-Dotson Date: Wed, 15 Sep 2021 14:52:44 -0700 Subject: [PATCH] add delete to markdown --- .../src/dashboard/components/gridComponents/Markdown.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx index a21402c3ab24d..6f64978db8ec5 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Markdown.jsx @@ -27,6 +27,7 @@ import { MarkdownEditor } from 'src/components/AsyncAceEditor'; import DeleteComponentButton from 'src/dashboard/components/DeleteComponentButton'; import DragDroppable from 'src/dashboard/components/dnd/DragDroppable'; +import HoverMenu from 'src/dashboard/components/menu/HoverMenu'; import ResizableContainer from 'src/dashboard/components/resizable/ResizableContainer'; import MarkdownModeDropdown from 'src/dashboard/components/menu/MarkdownModeDropdown'; import WithPopoverMenu from 'src/dashboard/components/menu/WithPopoverMenu'; @@ -317,7 +318,6 @@ class Markdown extends React.PureComponent { value={this.state.editorMode} onChange={this.handleChangeEditorMode} />, - , ]} editMode={editMode} > @@ -350,6 +350,11 @@ class Markdown extends React.PureComponent { className="dashboard-component dashboard-component-chart-holder" data-test="dashboard-component-chart-holder" > + + + {editMode && isEditing ? this.renderEditMode() : this.renderPreviewMode()}