diff --git a/public/app/features/dashboard/dashboardSrv.js b/public/app/features/dashboard/dashboardSrv.js index 8181af4566f..c857d1e212a 100644 --- a/public/app/features/dashboard/dashboardSrv.js +++ b/public/app/features/dashboard/dashboardSrv.js @@ -22,6 +22,7 @@ function (angular, $, _, moment) { this.id = data.id || null; this.title = data.title || 'No Title'; + this.description = data.description; this.tags = data.tags || []; this.style = data.style || "dark"; this.timezone = data.timezone || ''; diff --git a/public/app/features/dashboard/export/exporter.ts b/public/app/features/dashboard/export/exporter.ts index d3b94d7fae7..859199e3a07 100644 --- a/public/app/features/dashboard/export/exporter.ts +++ b/public/app/features/dashboard/export/exporter.ts @@ -26,9 +26,11 @@ export class DashboardExporter { _.each(row.panels, (panel) => { if (panel.datasource !== undefined) { promises.push(this.datasourceSrv.get(panel.datasource).then(ds => { - var refName = 'DS_' + ds.name.toUpperCase(); + var refName = 'DS_' + ds.name.replace(' ', '_').toUpperCase(); datasources[panel.datasource] = { name: refName, + label: ds.name, + description: '', type: 'datasource', pluginId: ds.meta.id, pluginName: ds.meta.name, diff --git a/public/app/features/dashboard/import/import.html b/public/app/features/dashboard/import/import.html index 7b60654dd50..5227569fcd8 100644 --- a/public/app/features/dashboard/import/import.html +++ b/public/app/features/dashboard/import/import.html @@ -62,7 +62,7 @@