Bladeren bron

Fixed broken playlist in master, Fixes #2240

Torkel Ödegaard 10 jaren geleden
bovenliggende
commit
693af182c7
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 2 2
      public/app/features/dashboard/playlistCtrl.js
  2. 1 1
      public/app/features/dashboard/playlistSrv.js

+ 2 - 2
public/app/features/dashboard/playlistCtrl.js

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

+ 1 - 1
public/app/features/dashboard/playlistSrv.js

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