mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux: progress on new page header
This commit is contained in:
@@ -41,7 +41,7 @@ export class DataSourceEditCtrl {
|
||||
navModelSrv,
|
||||
) {
|
||||
|
||||
this.navModel = navModelSrv.getNav('cfg', 'datasources');
|
||||
this.navModel = navModelSrv.getNav('cfg', 'datasources', 0);
|
||||
this.datasources = [];
|
||||
this.tabIndex = 0;
|
||||
|
||||
@@ -58,9 +58,7 @@ export class DataSourceEditCtrl {
|
||||
this.isNew = true;
|
||||
this.current = _.cloneDeep(defaults);
|
||||
|
||||
// add to nav & breadcrumbs
|
||||
this.navModel.node = {text: 'New data source', icon: 'icon-gf icon-gf-fw icon-gf-datasources'};
|
||||
this.navModel.breadcrumbs.push(this.navModel.node);
|
||||
this.navModel.breadcrumbs.push({text: 'New'});
|
||||
|
||||
// We are coming from getting started
|
||||
if (this.$location.search().gettingstarted) {
|
||||
@@ -87,7 +85,7 @@ export class DataSourceEditCtrl {
|
||||
this.backendSrv.get('/api/datasources/' + id).then(ds => {
|
||||
this.isNew = false;
|
||||
this.current = ds;
|
||||
this.navModel.node = {text: ds.name, icon: 'icon-gf icon-gf-fw icon-gf-datasources'};
|
||||
this.navModel.node = {text: ds.name, icon: 'icon-gf icon-gf-fw icon-gf-datasources', id: 'ds-new'};
|
||||
this.navModel.breadcrumbs.push(this.navModel.node);
|
||||
|
||||
if (datasourceCreated) {
|
||||
|
||||
Reference in New Issue
Block a user