Show no results message at correct times

This commit is contained in:
Rohan Mitchell
2015-07-03 12:07:57 +10:00
parent 64bc7404dc
commit 673635fdcb
2 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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}}.