We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d396b9 commit 4fb0cecCopy full SHA for 4fb0cec
src/routes/tutorial/[slug]/_/Chrome.svelte
@@ -5,15 +5,19 @@
5
/** @type {string} */
6
export let path;
7
8
+ /** @type {boolean} */
9
+ export let loading;
10
+
11
const dispatch = createEventDispatcher();
12
</script>
13
14
<div class="chrome">
- <button on:click={() => dispatch('refresh')} aria-label="reload">
15
+ <button disabled={loading} on:click={() => dispatch('refresh')} aria-label="reload">
16
<img src={refresh} alt="Reload icon" />
17
</button>
18
19
<input
20
+ disabled={loading}
21
aria-label="URL"
22
value={path}
23
on:change={(e) => {
src/routes/tutorial/[slug]/index.svelte
@@ -359,6 +359,7 @@
359
<section class="preview" slot="b">
360
<Chrome
361
{path}
362
+ {loading}
363
on:refresh={() => {
364
loading = true;
365
set_iframe_src(adapter.base + path);
0 commit comments