graceguo-supercat commented on a change in pull request #8455: [Datasource
Editor] A few small UI changes in modal to prevent accidental edits
URL:
https://github.com/apache/incubator-superset/pull/8455#discussion_r339408418
##########
File path:
superset/assets/src/explore/components/controls/DatasourceControl.jsx
##########
@@ -116,23 +118,16 @@ class DatasourceControl extends React.PureComponent {
render() {
const { menuExpanded, showChangeDatasourceModal, showEditDatasourceModal }
= this.state;
- const { datasource, onChange, onDatasourceSave, value } = this.props;
+ const { datasource, onChange, onDatasourceSave, value,
canChangePhysicalTable } = this.props;
return (
<div>
<ControlHeader {...this.props} />
<div className="btn-group label-dropdown">
- <OverlayTrigger
- placement="right"
- overlay={
- <Tooltip id={'error-tooltip'}>{t('Click to edit the
datasource')}</Tooltip>
Review comment:
fixed. Keep overlay trigger, and tooltip is `Click to change the datasource`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]