mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
The FilterSelectorsService is now able to create multiple independent lists of selectors. These lists are explicitly given to the filter-selector directive. For example a group's page has one set for the group's producers and one set for the group's shops.
11 lines
398 B
CoffeeScript
11 lines
398 B
CoffeeScript
Darkswarm.controller "GroupEnterprisesCtrl", ($scope, Search, FilterSelectorsService, EnterpriseModal) ->
|
|
$scope.filterSelectors = FilterSelectorsService.createSelectors()
|
|
$scope.query = Search.search()
|
|
$scope.openModal = EnterpriseModal.open
|
|
$scope.activeTaxons = []
|
|
$scope.show_profiles = false
|
|
$scope.filtersActive = false
|
|
|
|
$scope.$watch "query", (query)->
|
|
Search.search query
|