File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
public/app/features/plugins Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,7 @@ export class DataSourceEditCtrl {
98
98
99
99
this . datasourceSrv . get ( this . current . name ) . then ( datasource => {
100
100
if ( ! datasource . testDatasource ) {
101
- this . testing . message = 'Data source does not support test connection feature.' ;
102
- this . testing . status = 'warning' ;
103
- this . testing . title = 'Unknown' ;
101
+ delete this . testing ;
104
102
return ;
105
103
}
106
104
@@ -118,7 +116,9 @@ export class DataSourceEditCtrl {
118
116
}
119
117
} ) ;
120
118
} ) . finally ( ( ) => {
121
- this . testing . done = true ;
119
+ if ( this . testing ) {
120
+ this . testing . done = true ;
121
+ }
122
122
} ) ;
123
123
}
124
124
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ <h1 ng-hide="ctrl.isNew">Edit data source</h1>
53
53
</ plugin-component >
54
54
</ rebuild-on-change >
55
55
56
- < div ng-if ="ctrl.testing " style =" margin-top: 25px ">
56
+ < div ng-if ="ctrl.testing " class =" gf-form-group ">
57
57
< h5 ng-show ="!ctrl.testing.done "> Testing.... < i class ="fa fa-spiner fa-spin "> </ i > </ h5 >
58
58
< div class ="alert-{{ctrl.testing.status}} alert ">
59
59
< div class ="alert-title "> {{ctrl.testing.title}}</ div >
You can’t perform that action at this time.
0 commit comments