Skip to content

Commit

Permalink
feat(explore): update the order of datasource dropdown menu (apache#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and auxten committed Nov 20, 2020
1 parent a78a03e commit 4e1aefa
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 4e1aefa

Please sign in to comment.