mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
Move most filters back out into view - they now respond to filter preference changes
This commit is contained in:
@@ -30,10 +30,6 @@ Darkswarm.controller "EnterprisesCtrl", ($scope, $rootScope, Enterprises, Search
|
||||
|
||||
$scope.filterEnterprises = ->
|
||||
es = Enterprises.hubs
|
||||
es = visibleFilter(es)
|
||||
es = taxonsFilter(es, $scope.activeTaxons)
|
||||
es = shippingFilter(es, $scope.shippingTypes)
|
||||
es = showHubProfilesFilter(es)
|
||||
$scope.nameMatches = enterpriseMatchesNameQueryFilter(es, true)
|
||||
$scope.distanceMatches = enterpriseMatchesNameQueryFilter(es, false)
|
||||
$scope.distanceMatches = distanceWithinKmFilter($scope.distanceMatches, 50)
|
||||
|
||||
Reference in New Issue
Block a user