Handle errors when loading dashboard with template variables that query data sources that cannot be found

This commit is contained in:
Torkel Ödegaard
2015-04-07 13:48:26 +02:00
parent 8f73328e25
commit 646298f5c5
3 changed files with 9 additions and 1 deletions

View File

@@ -31,6 +31,10 @@ function (angular, _, kbn) {
return backendSrv.get('/api/metrics/test', { from: from, to: to, maxDataPoints: options.maxDataPoints });
};
GrafanaDatasource.prototype.metricFindQuery = function() {
return $q.when([]);
};
GrafanaDatasource.prototype.starDashboard = function(dashId) {
return backendSrv.post('/api/user/stars/dashboard/' + dashId);
};