mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
fix: show onhover menu only in edit mode (#17034)
* fix on markdown hover menu * lint-fix
This commit is contained in:
committed by
GitHub
parent
e32a12fa0b
commit
bdbcfbc8fc
@@ -350,11 +350,13 @@ class Markdown extends React.PureComponent {
|
||||
className="dashboard-component dashboard-component-chart-holder"
|
||||
data-test="dashboard-component-chart-holder"
|
||||
>
|
||||
<HoverMenu position="top">
|
||||
<DeleteComponentButton
|
||||
onDelete={this.handleDeleteComponent}
|
||||
/>
|
||||
</HoverMenu>
|
||||
{editMode && (
|
||||
<HoverMenu position="top">
|
||||
<DeleteComponentButton
|
||||
onDelete={this.handleDeleteComponent}
|
||||
/>
|
||||
</HoverMenu>
|
||||
)}
|
||||
{editMode && isEditing
|
||||
? this.renderEditMode()
|
||||
: this.renderPreviewMode()}
|
||||
|
||||
Reference in New Issue
Block a user