Просмотр исходного кода

Reload filters when loading page

This commit refreshes the dynamic filters when loading page.
Julien Pivotto 11 лет назад
Родитель
Сommit
1f417f0606
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/app/panels/filtering/module.js

+ 3 - 0
src/app/panels/filtering/module.js

@@ -28,6 +28,9 @@ function (angular, app, _) {
 
     $scope.init = function() {
       $scope.filterSrv = filterSrv;
+      _.each(filterSrv.list, function(filter) {
+        $scope.applyFilter(filter);
+      });
     };
 
     $scope.remove = function(filter) {