fix: some errors

This commit is contained in:
James Xylight committed 2024-12-23 13:49:20 -08:00
1 parent adc5dc3ad3
commit 04b29c1407
7 files changed
+22 -12

No files matched your search

+7
View File
@@ -98,6 +98,12 @@
}
})
}
let error = $state(null)
function onerror(e: any, r: any) {
error = e
}
</script>
<svelte:head>
@@ -129,6 +135,7 @@
{/snippet}
Skip Navigation
</Button>
<Shell
dir={$locale == 'he' && settings.useRtl ? 'rtl' : 'ltr'}
class="min-h-screen "
+1
View File
@@ -56,6 +56,7 @@
<Header pageHeader class="justify-between">
<span>{$t('routes.communities.title')}</span>
</Header>
<div
class="mt-4 mb-0 sticky z-30"
style="top: max(1.5rem, {$contentPadding.top}px);"
@@ -1,6 +1,4 @@
<script lang="ts">
import { run, preventDefault } from 'svelte/legacy'
import { goto } from '$app/navigation'
import { page } from '$app/stores'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
@@ -14,11 +12,9 @@
// @ts-ignore
let totpLink: string | undefined = $state(undefined)
let totpEnabled
run(() => {
totpEnabled =
data.my_user?.local_user_view.local_user.totp_2fa_enabled ?? totpLink
})
let totpEnabled = $state(
data.my_user?.local_user_view.local_user.totp_2fa_enabled,
)
let verify_totp = $state('')
@@ -83,7 +79,7 @@
{/if}
<form
class="flex flex-col gap-2 w-full"
onsubmit={preventDefault(() => {})}
onsubmit={(e) => e.preventDefault()}
>
<TextInput
bind:value={verify_totp}