File tree 1 file changed +8
-14
lines changed
1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 15
15
16
16
$ : heading = note ?.reference ?? ' ' ;
17
17
18
- export async function showModal() {
18
+ export function showModal() {
19
19
if (note !== undefined ) {
20
20
text = note .text ;
21
21
modal .showModal ();
22
22
} else {
23
- console .log (' No note available!' )
23
+ console .log (' No note available!' );
24
24
}
25
25
}
26
26
29
29
selectedVerses .reset ();
30
30
}
31
31
32
- async function onEditNote(){
32
+ function onEditNote() {
33
33
if (note !== undefined ) goto (` ${base }/notes/edit/${note .date } ` );
34
34
}
35
35
</script >
38
38
<svelte:fragment slot =" content" >
39
39
<div id =" container" class =" flex flex-col justify-evenly" >
40
40
<div class =" w-full flex justify-between items-center" >
41
- <div
42
- class =" annotation-item-title w-full pb-3 font-bold"
43
- >
41
+ <div class =" annotation-item-title w-full pb-3 font-bold" >
44
42
{heading }
45
43
</div >
46
- <button class =" dy-btn dy-btn-ghost dy-btn-circle"
47
- on:click ={onEditNote }
48
- >
49
- <EditIcon />
50
- </button >
44
+ <button class ="dy-btn dy-btn-ghost dy-btn-circle" on:click ={onEditNote }>
45
+ <EditIcon />
46
+ </button >
51
47
</div >
52
-
48
+
53
49
<div style:word-wrap =" break-word" class =" mt-2" >
54
50
{#if text !== undefined }
55
51
{#each text .split (/ \r ? \n / ) as line }
66
62
</div >
67
63
</svelte:fragment >
68
64
</Modal >
69
-
70
-
You can’t perform that action at this time.
0 commit comments