From dd2e180f9b41f8d02f5f2c736f10265843e954c5 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 22 Mar 2021 00:04:24 +0100 Subject: [PATCH] Rename search and days to initialSearch and intitialDays in GraphsPage --- ts/graphs/GraphsPage.svelte | 16 ++++++++-------- ts/graphs/RangeBox.svelte | 2 -- ts/graphs/WithGraphData.svelte | 1 + ts/graphs/asyncReactive.ts | 2 +- ts/graphs/index.ts | 4 ++-- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/ts/graphs/GraphsPage.svelte b/ts/graphs/GraphsPage.svelte index c0f76cf02..c76236bb1 100644 --- a/ts/graphs/GraphsPage.svelte +++ b/ts/graphs/GraphsPage.svelte @@ -11,8 +11,8 @@ export let nightMode: boolean; export let graphs: SvelteComponent[]; - export let search: string; - export let days: number; + export let initialSearch: string; + export let initialDays: number; export let controller: SvelteComponent | null; const browserSearch = (search: string, query: string) => { @@ -30,20 +30,20 @@
{#if controller} - + {/if} - {#if !pending && sourceData && preferences} + {#if !pending} {#each graphs as graph} + import { onMount } from "svelte"; import { writable } from "svelte/store"; import useAsync from "./async"; import useAsyncReactive from "./asyncReactive"; diff --git a/ts/graphs/asyncReactive.ts b/ts/graphs/asyncReactive.ts index bb91f1fc7..57d7b500f 100644 --- a/ts/graphs/asyncReactive.ts +++ b/ts/graphs/asyncReactive.ts @@ -4,8 +4,8 @@ interface AsyncReativeData { value: Readable; error: Readable; pending: Readable; - success: Readable; loading: Readable; + success: Readable; } function useAsyncReactive( diff --git a/ts/graphs/index.ts b/ts/graphs/index.ts index 4e261cfd6..68e877e66 100644 --- a/ts/graphs/index.ts +++ b/ts/graphs/index.ts @@ -40,8 +40,8 @@ export function graphs( i18n, graphs, nightMode, - search, - days, + initialSearch: search, + initialDays: days, controller, }, });