fix: hide create community for instances where that is disabled

This commit is contained in:
James Xylight committed 2025-09-05 20:59:09 -07:00
1 parent 383e6268f2
commit 5f9617b172
7 files changed
+70 -29

No files matched your search

+3 -4
View File
@@ -21,7 +21,7 @@
isUser,
} from '$lib/lemmy/item.js'
import { searchParam } from '$lib/util.svelte.js'
import { Button, Select, Spinner } from 'mono-svelte'
import { Button, Select, Spinner, TextLoader } from 'mono-svelte'
import Option from 'mono-svelte/forms/select/Option.svelte'
import {
AdjustmentsHorizontal,
@@ -145,8 +145,7 @@
class="flex gap-2 items-center my-4"
out:slide={{ axis: 'y', easing: expoOut }}
>
<Spinner width={24} />
<span>{$t('routes.search.federating')}</span>
<TextLoader>{$t('routes.search.federating')}</TextLoader>
</div>
{:then object}
{#if object}
@@ -169,7 +168,7 @@
</div>
{/if}
{/await}
<CommonList items={data.results.value} animate size="lg">
<CommonList items={data.results.value}>
{#snippet item(result)}
{#if isPostView(result)}
<PostItem post={result} />