mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
The filter for closed shops was filtering profiles as well. That made it impossible to show profiles without showing closed shops as well. Replacing the filter for closed shops fixes the "show profiles" feature. Fixes https://github.com/openfoodfoundation/openfoodnetwork/issues/1718
11 lines
695 B
Plaintext
11 lines
695 B
Plaintext
.active_table
|
|
%hub.active_table_node.row{"ng-repeat" => "hub in #{enterprises}Filtered = (#{enterprises} | closedShops:show_closed | taxons:activeTaxons | properties:activeProperties:'distributed_properties' | shipping:shippingTypes | showHubProfiles:show_profiles | orderBy:['-active', '+distance', '+orders_close_at'])",
|
|
"ng-class" => "{'is_profile' : hub.category == 'hub_profile', 'closed' : !open(), 'open' : open(), 'inactive' : !hub.active, 'current' : current()}",
|
|
"ng-controller" => "HubNodeCtrl",
|
|
id: "{{hub.hash}}"}
|
|
.small-12.columns
|
|
= render 'skinny'
|
|
= render 'fat'
|
|
|
|
= render 'shared/components/enterprise_no_results', enterprises: "#{enterprises}Filtered"
|