cleanup: use native html forms for earch and communities
This commit is contained in:
1 parent
e46422c27b
commit
73a4c16322
37 files changed
+254
-246
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import { page } from '$app/stores'
|
||||
import { page } from '$app/state'
|
||||
import { errorMessage } from '$lib/lemmy/error'
|
||||
import { t } from '$lib/translations'
|
||||
import { Button } from 'mono-svelte'
|
||||
@@ -22,10 +22,10 @@
|
||||
class="text-primary-900 dark:text-primary-100 text-6xl font-black flex items-center flex-row gap-2
|
||||
font-display border-b pb-4 border-slate-200 dark:border-zinc-800"
|
||||
>
|
||||
{$page.status}
|
||||
{page.status}
|
||||
</h1>
|
||||
{#if $page?.error?.message}
|
||||
{@const error = getError($page?.error?.message)}
|
||||
{#if page?.error?.message}
|
||||
{@const error = getError(page?.error?.message)}
|
||||
{#if error.code}
|
||||
<code class="rounded-md dark:!bg-zinc-950 px-2 py-1 min-w-48">
|
||||
{error.string}
|
||||
@@ -39,7 +39,7 @@
|
||||
<div class="flex items-center gap-2">
|
||||
<Button
|
||||
rounding="xl"
|
||||
onclick={() => goto($page.url, { invalidateAll: true })}
|
||||
onclick={() => goto(page.url, { invalidateAll: true })}
|
||||
>
|
||||
{$t('message.retry')}
|
||||
</Button>
|
||||
|
||||
Reference in new issue
Block a user