File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/routes/tutorial/[slug] Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
/** @type {string} */
6
6
export let path;
7
7
8
+ /** @type {boolean} */
9
+ export let loading;
10
+
8
11
const dispatch = createEventDispatcher ();
9
12
</script >
10
13
11
14
<div class =" chrome" >
12
- <button on:click ={() => dispatch (' refresh' )} aria-label =" reload" >
15
+ <button disabled ={ loading } on:click ={() => dispatch (' refresh' )} aria-label =" reload" >
13
16
<img src ={refresh } alt =" Reload icon" />
14
17
</button >
15
18
16
19
<input
20
+ disabled ={loading }
17
21
aria-label =" URL"
18
22
value ={path }
19
23
on:change ={(e ) => {
Original file line number Diff line number Diff line change 359
359
< section class = " preview" slot= " b" >
360
360
< Chrome
361
361
{path}
362
+ {loading}
362
363
on: refresh= {() => {
363
364
loading = true ;
364
365
set_iframe_src (adapter .base + path);
You can’t perform that action at this time.
0 commit comments