diff --git a/public/app/core/routes/routes.ts b/public/app/core/routes/routes.ts
index 2b035650c76..91ef4cd8b25 100644
--- a/public/app/core/routes/routes.ts
+++ b/public/app/core/routes/routes.ts
@@ -63,6 +63,7 @@ function setupAngularRoutes($routeProvider, $locationProvider) {
.when('/datasources/new', {
templateUrl: 'public/app/features/datasources/partials/edit.html',
controller : 'DataSourceEditCtrl',
+ controllerAs: 'ctrl',
resolve: loadOrgBundle,
})
.when('/org', {
diff --git a/public/app/features/dashboard/import_list/import_list.ts b/public/app/features/dashboard/import_list/import_list.ts
index d8333bec4fa..b4fe3c36352 100644
--- a/public/app/features/dashboard/import_list/import_list.ts
+++ b/public/app/features/dashboard/import_list/import_list.ts
@@ -31,14 +31,21 @@ export class DashImportListCtrl {
var template = `
`;
diff --git a/public/app/features/datasources/edit_ctrl.ts b/public/app/features/datasources/edit_ctrl.ts
index eafee0d427a..b766d6cda84 100644
--- a/public/app/features/datasources/edit_ctrl.ts
+++ b/public/app/features/datasources/edit_ctrl.ts
@@ -22,6 +22,8 @@ export class DataSourceEditCtrl {
types: any;
testing: any;
datasourceMeta: any;
+ tabIndex: number;
+ hasDashboards: boolean;
/** @ngInject */
constructor(
@@ -34,6 +36,7 @@ export class DataSourceEditCtrl {
this.isNew = true;
this.datasources = [];
+ this.tabIndex = 0;
this.loadDatasourceTypes().then(() => {
if (this.$routeParams.id) {
@@ -66,8 +69,10 @@ export class DataSourceEditCtrl {
}
typeChanged() {
+ this.hasDashboards = false;
return this.backendSrv.get('/api/org/plugins/' + this.current.type + '/settings').then(pluginInfo => {
this.datasourceMeta = pluginInfo;
+ this.hasDashboards = _.findWhere(pluginInfo.includes, {type: 'dashboard'});
});
}
diff --git a/public/app/features/datasources/partials/edit.html b/public/app/features/datasources/partials/edit.html
index c8840321f40..fa1e0cee104 100644
--- a/public/app/features/datasources/partials/edit.html
+++ b/public/app/features/datasources/partials/edit.html
@@ -11,12 +11,12 @@
-
-
+
Config
-
-
+
Dashboards
@@ -24,55 +24,60 @@
+
+
+
+
+
-
diff --git a/public/app/plugins/datasource/graphite/plugin.json b/public/app/plugins/datasource/graphite/plugin.json
index b079ec320f2..c923cb79c4e 100644
--- a/public/app/plugins/datasource/graphite/plugin.json
+++ b/public/app/plugins/datasource/graphite/plugin.json
@@ -4,7 +4,8 @@
"id": "graphite",
"includes": [
- {"type": "dashboard", "name": "Carbon Stats", "path": "dashboards/carbon_stats.json"}
+ {"type": "dashboard", "name": "Carbon Overview", "path": "dashboards/carbon_stats.json"},
+ {"type": "dashboard", "name": "Carbon Agent Details", "path": "dashboards/carbon_stats.json"}
],
"metrics": true,