Update ChannelItem.svelte

This commit is contained in:
freearhey 2024-12-30 18:00:05 +03:00
parent 5f9f599912
commit 7594821e9e

View file

@ -4,6 +4,8 @@
import GuidesPopup from './GuidesPopup.svelte' import GuidesPopup from './GuidesPopup.svelte'
import ChannelPopup from './ChannelPopup.svelte' import ChannelPopup from './ChannelPopup.svelte'
import Checkbox from './Checkbox.svelte' import Checkbox from './Checkbox.svelte'
import BlockedBadge from './BlockedBadge.svelte'
import ClosedBadge from './ClosedBadge.svelte'
import { downloadMode, selected, query } from '~/store' import { downloadMode, selected, query } from '~/store'
import { fade } from 'svelte/transition' import { fade } from 'svelte/transition'
@ -107,20 +109,10 @@
</a> </a>
<div class="flex space-x-2"> <div class="flex space-x-2">
{#if channel.is_closed} {#if channel.is_closed}
<div <ClosedBadge {channel} />
class="text-gray-500 border-[1px] border-gray-200 text-xs inline-flex items-center px-2.5 py-0.5 dark:text-gray-300 cursor-default rounded-full"
title="closed: {channel.closed}"
>
Closed
</div>
{/if} {/if}
{#if channel.is_blocked} {#if channel.is_blocked}
<div <BlockedBadge {channel} />
class="text-gray-500 border-[1px] border-gray-200 text-xs inline-flex items-center px-2.5 py-0.5 dark:text-gray-300 cursor-default rounded-full"
title="The channel has been added to our blocklist due to the claim of the copyright holder"
>
Blocked
</div>
{/if} {/if}
</div> </div>
</div> </div>