diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index cd3928d7e..78f8141af 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -24,7 +24,9 @@ const preferencesPromise = getPreferences(); - const refreshWith = async (search: string, days: number) => { + const refreshWith = async (searchNew: string, days: number) => { + search = searchNew + active = true; try { [sourceData, preferences] = await Promise.all([ @@ -44,6 +46,11 @@ }; refreshWith(search, days); + + const browserSearch = (event: CustomEvent) => { + const query = `${search} ${event.detail.query}` + bridgeCommand(`browserSearch:${query}`) + } {#if controller} @@ -65,7 +72,8 @@ {preferences} {revlogRange} {i18n} - {nightMode} /> + {nightMode} + on:search={browserSearch} /> {/each} {/if}