fix: accounts switching fails
This commit is contained in:
3 files changed
+9
-12
No files matched your search
@@ -31,13 +31,8 @@
|
||||
|
||||
let radioSelected = $state(profile.current.id)
|
||||
$effect(() => {
|
||||
switching = radioSelected
|
||||
profile.meta.profile = radioSelected
|
||||
})
|
||||
|
||||
$effect(() => {
|
||||
if (profile.current.user) switching = -1
|
||||
})
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
import { Button, Material, Select, Spinner, toast } from 'mono-svelte'
|
||||
import Option from 'mono-svelte/forms/select/Option.svelte'
|
||||
import { tick } from 'svelte'
|
||||
import { Check, Funnel, Icon, Inbox, XMark } from 'svelte-hero-icons'
|
||||
import { Check, Funnel, Icon, ShieldCheck, XMark } from 'svelte-hero-icons'
|
||||
import Report from './Report.svelte'
|
||||
|
||||
let { data = $bindable() } = $props()
|
||||
@@ -160,7 +160,7 @@
|
||||
/>
|
||||
{:else}
|
||||
<Placeholder
|
||||
icon={Inbox}
|
||||
icon={ShieldCheck}
|
||||
title={$t('routes.moderation.empty.title')}
|
||||
description={$t('routes.moderation.empty.description')}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user