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

This commit is contained in:
Torkel Ödegaard
2017-10-18 12:02:57 +02:00
parent 7cbb4020e9
commit 039fc2964a
2 changed files with 7 additions and 1 deletions

View File

@@ -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;
});
}

View File

@@ -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
);
}