diff --git a/public/app/features/plugins/ds_edit_ctrl.ts b/public/app/features/plugins/ds_edit_ctrl.ts index db0d5c744dc..6ea230e054b 100644 --- a/public/app/features/plugins/ds_edit_ctrl.ts +++ b/public/app/features/plugins/ds_edit_ctrl.ts @@ -114,7 +114,7 @@ export class DataSourceEditCtrl { this.hasDashboards = false; return this.backendSrv.get('/api/plugins/' + this.current.type + '/settings').then(pluginInfo => { this.datasourceMeta = pluginInfo; - this.hasDashboards = _.find(pluginInfo.includes, {type: 'dashboard'}); + this.hasDashboards = _.find(pluginInfo.includes, {type: 'dashboard'}) !== undefined; }); } diff --git a/public/app/features/plugins/partials/ds_edit.html b/public/app/features/plugins/partials/ds_edit.html index 58396e816b3..4d6a091ca95 100644 --- a/public/app/features/plugins/partials/ds_edit.html +++ b/public/app/features/plugins/partials/ds_edit.html @@ -83,6 +83,9 @@
- - + +
+ +
+