From de1b162ee918264a450c0e29c0606e20997b946a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 12:49:07 +0400 Subject: [PATCH] Different sidebar headers for nearby and full search --- app/components/places-sidebar.gjs | 17 +++++++++++++++-- tests/acceptance/search-test.js | 2 ++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/app/components/places-sidebar.gjs b/app/components/places-sidebar.gjs index 1f39729..49a96cb 100644 --- a/app/components/places-sidebar.gjs +++ b/app/components/places-sidebar.gjs @@ -145,6 +145,11 @@ export default class PlacesSidebar extends Component { } } + get isNearbySearch() { + const qp = this.router.currentRoute.queryParams; + return !qp.q && qp.lat && qp.lon; + } +