mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
feat(location): render the search field's open and searching state from the tray
LocationControls presents whether the search field is open and whether a lookup runs, and the dock renders its expanded and searching classes and calls toggleSearch(). The lookup, the navigation's settle, Escape and the location tray's collapse reach the field through the controls (setSearching, settleSearch, closeSearch) instead of writing its classes. LocationControls no longer takes searchToggle, LocationSearch takes setSearching and NavigationController takes settleSearch in place of searchInput.
This commit is contained in:
1 parent
b4ee2321cf
commit
0949f6a776
18 files changed
+238
-83
No files matched your search
@@ -4,8 +4,9 @@ import { markRaw, shallowRef } from 'vue';
|
||||
/**
|
||||
* The dock's location tray as its view renders it. LocationControls
|
||||
* presents the city pills, the landmark row, the mini status, the search
|
||||
* error and the ORBIT indicator and publishes them here; it keeps the search
|
||||
* field's listeners.
|
||||
* error, the search field's open and searching state and the ORBIT indicator
|
||||
* and publishes them here; it keeps the search field's key, input and blur
|
||||
* listeners.
|
||||
*/
|
||||
export const useLocationStore = defineStore('gev-location', () => {
|
||||
/** The presented tray; null until the controls first render. */
|
||||
|
||||
Reference in new issue
Block a user