mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
feat(explore): update the order of datasource dropdown menu (#11424)
This commit is contained in:
parent
81f77fd28e
commit
fd8f4e9215
@ -194,6 +194,11 @@ class DatasourceControl extends React.PureComponent {
|
||||
|
||||
const datasourceMenu = (
|
||||
<Menu onClick={this.handleMenuItemClick}>
|
||||
{this.props.isEditable && (
|
||||
<Menu.Item key={EDIT_DATASET} data-test="edit-dataset">
|
||||
{t('Edit Dataset')}
|
||||
</Menu.Item>
|
||||
)}
|
||||
<Menu.Item key={CHANGE_DATASET}>{t('Change Dataset')}</Menu.Item>
|
||||
<Menu.Item key={EXPLORE_IN_SQL_LAB}>
|
||||
<a
|
||||
@ -201,14 +206,9 @@ class DatasourceControl extends React.PureComponent {
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{t('Explore in SQL Lab')}
|
||||
{t('View in SQL Lab')}
|
||||
</a>
|
||||
</Menu.Item>
|
||||
{this.props.isEditable && (
|
||||
<Menu.Item key={EDIT_DATASET} data-test="edit-dataset">
|
||||
{t('Edit Dataset')}
|
||||
</Menu.Item>
|
||||
)}
|
||||
</Menu>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user