|
|
@@ -59,6 +59,7 @@ export class DataSourceEditCtrl {
|
|
|
initNewDatasourceModel() {
|
|
|
this.isNew = true;
|
|
|
this.current = angular.copy(defaults);
|
|
|
+ this.navModel.items.push({title: 'New data source'});
|
|
|
|
|
|
// We are coming from getting started
|
|
|
if (this.$location.search().gettingstarted) {
|
|
|
@@ -85,10 +86,13 @@ export class DataSourceEditCtrl {
|
|
|
this.backendSrv.get('/api/datasources/' + id).then(ds => {
|
|
|
this.isNew = false;
|
|
|
this.current = ds;
|
|
|
+ this.navModel.items.push({title: ds.name});
|
|
|
+
|
|
|
if (datasourceCreated) {
|
|
|
datasourceCreated = false;
|
|
|
this.testDatasource();
|
|
|
}
|
|
|
+
|
|
|
return this.typeChanged();
|
|
|
});
|
|
|
}
|