Refactor search route/loading
* Fetch results asynchronously after app launch * Hide sidebar and search results when new search is issued
This commit is contained in:
@@ -27,7 +27,7 @@ export default class SearchTemplate extends Component {
|
||||
<template>
|
||||
{{#if this.mapUi.isSidebarVisible}}
|
||||
<PlacesSidebar
|
||||
@places={{@model}}
|
||||
@places={{this.mapUi.searchResults}}
|
||||
@onSelect={{this.selectPlace}}
|
||||
@onClose={{this.close}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user