fix: modals wont work
This commit is contained in:
1 parent
5c90d88ee7
commit
2cd8aa5cad
5 files changed
+7
-4
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "photon-lemmy",
|
"name": "photon-lemmy",
|
||||||
"version": "1.16.1",
|
"version": "1.16.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
|||||||
@@ -3,12 +3,11 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!--These weird await hacks are for lazy loading, better network performance-->
|
<!--These weird await hacks are for lazy loading, better network performance-->
|
||||||
|
|
||||||
{#if $modals.reporting.open}
|
{#if $modals.reporting.open}
|
||||||
{#await import('$lib/components/lemmy/moderation/ReportModal.svelte') then { default: ReportModal }}
|
{#await import('$lib/components/lemmy/moderation/ReportModal.svelte') then { default: ReportModal }}
|
||||||
<ReportModal
|
<ReportModal
|
||||||
bind:open={$modals.reporting.open}
|
bind:open={$modals.reporting.open}
|
||||||
item={$modals.reporting.item}
|
bind:item={$modals.reporting.item}
|
||||||
/>
|
/>
|
||||||
{/await}
|
{/await}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
import { profile } from '$lib/auth.js'
|
import { profile } from '$lib/auth.js'
|
||||||
import { Button, Modal } from 'mono-svelte'
|
import { Button, Modal } from 'mono-svelte'
|
||||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||||
|
import { onMount } from 'svelte'
|
||||||
|
|
||||||
export let open: boolean
|
export let open: boolean
|
||||||
export let item: PostView | CommentView | undefined = undefined
|
export let item: PostView | CommentView | undefined = undefined
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { SubmissionView } from '$lib/lemmy/contentview.js'
|
import type { SubmissionView } from '$lib/lemmy/contentview.js'
|
||||||
import type { Community, MyUserInfo, Person } from 'lemmy-js-client'
|
import type { Community, MyUserInfo, Person } from 'lemmy-js-client'
|
||||||
import { writable } from 'svelte/store'
|
import { get, writable } from 'svelte/store'
|
||||||
|
|
||||||
interface Modals {
|
interface Modals {
|
||||||
reporting: {
|
reporting: {
|
||||||
|
|||||||
@@ -75,6 +75,9 @@
|
|||||||
Skip Navigation
|
Skip Navigation
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
<Moderation />
|
||||||
|
<ToastContainer />
|
||||||
|
|
||||||
<Shell
|
<Shell
|
||||||
class="min-h-screen {$userSettings.font == 'inter'
|
class="min-h-screen {$userSettings.font == 'inter'
|
||||||
? 'font-inter'
|
? 'font-inter'
|
||||||
|
|||||||
Reference in new issue
Block a user