fix: change database save in DatasourceEditor (#9255)

* fix: change database save in DatasourceEditor

This addresses the issue where pointing a datasource to another database
in the datasource editor is not reflected.

Also addresses:
- a minorcosmetic issue in the datasource editor.
- user/owners list not getting populated

* tests
This commit is contained in:
Maxime Beauchemin
2020-03-10 09:20:37 -07:00
committed by GitHub
parent 99242225d6
commit 116200cf73
7 changed files with 49 additions and 15 deletions

View File

@@ -729,11 +729,13 @@ export class DatasourceEditor extends React.PureComponent {
<Tab eventKey={4} title={t('Settings')}>
{activeTabKey === 4 && (
<div>
<div className="change-warning well">
<span className="bold">{t('Be careful.')} </span>
{t(
'Changing these settings will affect all charts using this datasource, including charts owned by other people.',
)}
<div className="m-t-10">
<Alert bsStyle="warning">
<span className="bold">{t('Be careful.')} </span>
{t(
'Changing these settings will affect all charts using this datasource, including charts owned by other people.',
)}
</Alert>
</div>
<Col md={6}>
<FormContainer>{this.renderSettingsFieldset()}</FormContainer>