diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index e7e8014ed10..a3e78c33a15 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -98,9 +98,7 @@ export class DataSourceEditCtrl { this.datasourceSrv.get(this.current.name).then(datasource => { if (!datasource.testDatasource) { - this.testing.message = 'Data source does not support test connection feature.'; - this.testing.status = 'warning'; - this.testing.title = 'Unknown'; + delete this.testing; return; } @@ -118,7 +116,9 @@ export class DataSourceEditCtrl { } }); }).finally(() => { - this.testing.done = true; + if (this.testing) { + this.testing.done = true; + } }); } diff --git a/public/app/features/plugins/partials/ds_edit.html b/public/app/features/plugins/partials/ds_edit.html index 6ad0c40fa68..4756428bead 100644 --- a/public/app/features/plugins/partials/ds_edit.html +++ b/public/app/features/plugins/partials/ds_edit.html @@ -53,7 +53,7 @@ -
+
Testing....
{{ctrl.testing.title}}