Commit 693af182 by Torkel Ödegaard

Fixed broken playlist in master, Fixes #2240

parent 906e70e5
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment