fix: modals wont work

This commit is contained in:
Xyphyn committed 2023-10-03 18:43:37 -07:00
1 parent 5c90d88ee7
commit 2cd8aa5cad
5 files changed
+7 -4

No files matched your search

@@ -3,12 +3,11 @@
</script>
<!--These weird await hacks are for lazy loading, better network performance-->
{#if $modals.reporting.open}
{#await import('$lib/components/lemmy/moderation/ReportModal.svelte') then { default: ReportModal }}
<ReportModal
bind:open={$modals.reporting.open}
item={$modals.reporting.item}
bind:item={$modals.reporting.item}
/>
{/await}
{/if}
@@ -7,6 +7,7 @@
import { profile } from '$lib/auth.js'
import { Button, Modal } from 'mono-svelte'
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
import { onMount } from 'svelte'
export let open: boolean
export let item: PostView | CommentView | undefined = undefined
@@ -1,6 +1,6 @@
import type { SubmissionView } from '$lib/lemmy/contentview.js'
import type { Community, MyUserInfo, Person } from 'lemmy-js-client'
import { writable } from 'svelte/store'
import { get, writable } from 'svelte/store'
interface Modals {
reporting: {
+3
View File
@@ -75,6 +75,9 @@
Skip Navigation
</Button>
<Moderation />
<ToastContainer />
<Shell
class="min-h-screen {$userSettings.font == 'inter'
? 'font-inter'