diff --git a/packages/ui/src/Shell.svelte b/packages/ui/src/Shell.svelte index 0843403..e9a9785 100644 --- a/packages/ui/src/Shell.svelte +++ b/packages/ui/src/Shell.svelte @@ -13,7 +13,9 @@ let { letter = '', sunset, - rose + rose, + updateReady = false, + onrefresh }: { /** The author's Markdown from docs/LETTER.md. Empty means there is no way to the page. */ letter?: string; @@ -21,6 +23,10 @@ sunset?: SunsetWiring; /** The rose and her care log. Absent, the garden has no rose. */ rose?: RoseWiring; + /** A new version of the garden is installed and waiting (calm-refresh.md). */ + updateReady?: boolean; + /** Swap to the waiting version and reload. Only ever called by the player's tap. */ + onrefresh?: () => void; } = $props(); // --- The sunset (sunset-place.md) --------------------------------------- @@ -143,6 +149,14 @@ {/if} +{#if updateReady && onrefresh} + +{/if} + +