mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Do not show 'Closest to...' heading when no query entered
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
= render "home/hubs_table", enterprises: "nameMatches"
|
||||
|
||||
.distance-matches{"ng-if" => "nameMatches.length == 0 || distanceMatchesShown"}
|
||||
%h2
|
||||
%h2{"ng-show" => "nameMatches.length > 0 || query.length > 0"}
|
||||
Closest to
|
||||
%span{"ng-show" => "nameMatches.length > 0"} {{ nameMatches[0].name }}...
|
||||
%span{"ng-hide" => "nameMatches.length > 0"} {{ query }}...
|
||||
|
||||
Reference in New Issue
Block a user