Use "Results" header for category search results

This commit is contained in:
2026-03-20 17:59:11 +04:00
parent eb7cff7ff5
commit 4008a8c883
2 changed files with 3 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ export default class PlacesSidebar extends Component {
get isNearbySearch() {
const qp = this.router.currentRoute.queryParams;
return !qp.q && qp.lat && qp.lon;
return !qp.q && !qp.category && qp.lat && qp.lon;
}
<template>

View File

@@ -215,5 +215,7 @@ module('Acceptance | search', function (hooks) {
);
assert.dom('.places-list li').exists({ count: 1 });
assert.dom('.places-list li .place-name').hasText('Latte Art Cafe');
// Ensure it shows "Results" not "Nearby"
assert.dom('.sidebar-header h2').includesText('Results');
});
});