mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-11 17:40:05 -04:00
Update ChannelItem.svelte
This commit is contained in:
parent
5f9f599912
commit
7594821e9e
1 changed files with 4 additions and 12 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue