diff --git a/public/app/features/dashboard/import_list/import_list.ts b/public/app/features/dashboard/import_list/import_list.ts index 1d3aa42611b..d8333bec4fa 100644 --- a/public/app/features/dashboard/import_list/import_list.ts +++ b/public/app/features/dashboard/import_list/import_list.ts @@ -8,8 +8,13 @@ class DashboardScriptLoader { } export class DashImportListCtrl { + dashboards: any[]; + plugin: any; + constructor(private $http) { - console.log('importList', this); + + this.dashboards = this.plugin.includes.filter(val => val.type === 'dashboard'); + } load(json) { @@ -18,17 +23,22 @@ export class DashImportListCtrl { } import() { - var url = 'public/app/plugins/datasource/graphite/dashboards/carbon_stats.json'; - this.$http.get(url).then(res => { - this.load(res.data); - }); + // this.$http.get(url).then(res => { + // this.load(res.data); + // }); } } var template = ` -