mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed broken playlist in master, Fixes #2240
This commit is contained in:
parent
906e70e599
commit
693af182c7
@ -25,14 +25,14 @@ function (angular, _, config) {
|
||||
}
|
||||
|
||||
backendSrv.search(query).then(function(results) {
|
||||
$scope.searchHits = results.dashboards;
|
||||
$scope.searchHits = results;
|
||||
$scope.filterHits();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.filterHits = function() {
|
||||
$scope.filteredHits = _.reject($scope.searchHits, function(dash) {
|
||||
return _.findWhere($scope.playlist, {slug: dash.slug});
|
||||
return _.findWhere($scope.playlist, {uri: dash.uri});
|
||||
});
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,7 @@ function (angular, _, kbn) {
|
||||
angular.element(window).unbind('resize');
|
||||
var dash = self.dashboards[self.index % self.dashboards.length];
|
||||
|
||||
$location.url('dashboard/db/' + dash.slug);
|
||||
$location.url('dashboard/' + dash.uri);
|
||||
|
||||
self.index++;
|
||||
self.cancelPromise = $timeout(self.next, self.interval);
|
||||
|
Loading…
Reference in New Issue
Block a user