Skip to content

Commit

Permalink
feat(explore): update the order of datasource dropdown menu (#11424)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored Oct 27, 2020
1 parent 81f77fd commit fd8f4e9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,21 @@ 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
href={`/superset/sqllab?datasourceKey=${value}`}
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>
);

Expand Down

0 comments on commit fd8f4e9

Please sign in to comment.