Fix back button behavior

fixes #12
This commit is contained in:
2026-02-08 16:46:07 +04:00
parent 348b721876
commit 59e3d91071
5 changed files with 114 additions and 3 deletions

View File

@@ -5,10 +5,12 @@ import { action } from '@ember/object';
export default class SearchTemplate extends Component {
@service router;
@service mapUi;
@action
selectPlace(place) {
if (place) {
this.mapUi.returnToSearch = true;
this.router.transitionTo('place', place);
}
}