mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Show no results message at correct times
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"ng-controller" => "HubNodeCtrl",
|
||||
id: "{{hub.hash}}"}
|
||||
.small-12.columns
|
||||
= render partial: 'home/skinny'
|
||||
= render partial: 'home/fat'
|
||||
= render 'home/skinny'
|
||||
= render 'home/fat'
|
||||
|
||||
= render partial: 'shared/components/enterprise_no_results'
|
||||
= render 'shared/components/enterprise_no_results', enterprises: enterprises
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
%producer.row{"ng-show" => "filteredEnterprises.length == 0"}
|
||||
%producer.row{"ng-show" => "#{enterprises || 'filteredEnterprises'}.length == 0"}
|
||||
%p.no-results
|
||||
Sorry, no results found for
|
||||
%strong {{query}}.
|
||||
|
||||
Reference in New Issue
Block a user