fix: getting started panel and mark adding data source as done, fixes #9568

(cherry picked from commit 039fc2964a)
This commit is contained in:
Torkel Ödegaard
2017-10-18 12:04:52 +02:00
parent 6f3d61f4d2
commit 054c7a154a
2 changed files with 7 additions and 1 deletions
@@ -75,6 +75,12 @@ export class ElasticDatasource {
return this.request('POST', url, data).then(function(results) {
results.data.$$config = results.config;
return results.data;
}).catch(err => {
if (err.data && err.data.error) {
throw {message: 'Elasticsearch error: ' + err.data.error.reason, error: err.data.error};
}
throw err;
});
}
@@ -34,7 +34,7 @@ class GettingStartedPanelCtrl extends PanelCtrl {
check: () => {
return $q.when(
datasourceSrv.getMetricSources().filter(item => {
return item.meta.builtIn === false;
return item.meta.builtIn !== true;
}).length > 0
);
}