style(dashboard): minor improvements to chart context menu (#11170)

Bumping "Explore/edit chart" as the first option. Getting rid of the
old "edit chart properties" deprecated CRUD link
This commit is contained in:
Maxime Beauchemin 2020-10-06 12:55:13 -07:00 committed by GitHub
parent f109f11ceb
commit c8a5dec84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 9 deletions

View File

@ -158,9 +158,9 @@ class SliceHeaderControls extends React.PureComponent {
</MenuItem>
)}
{this.props.sliceCanEdit && (
<MenuItem href={slice.edit_url} target="_blank">
{t('Edit chart metadata')}
{this.props.supersetCanExplore && (
<MenuItem onClick={this.exploreChart}>
{t('Explore chart')}
</MenuItem>
)}
@ -168,12 +168,6 @@ class SliceHeaderControls extends React.PureComponent {
<MenuItem onClick={this.exportCSV}>{t('Export CSV')}</MenuItem>
)}
{this.props.supersetCanExplore && (
<MenuItem onClick={this.exploreChart}>
{t('Explore chart')}
</MenuItem>
)}
<MenuItem onClick={this.handleToggleFullSize}>{resizeLabel}</MenuItem>
<URLShortLinkModal