mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix: getting started panel and mark adding data source as done, fixes #9568
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user