Fixed broken playlist in master, Fixes #2240

This commit is contained in:
Torkel Ödegaard 2015-06-26 19:11:52 +02:00
parent 906e70e599
commit 693af182c7
2 changed files with 3 additions and 3 deletions

View File

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

View File

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