mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-14 02:50:07 -04:00
Update ChannelPopup.svelte
This commit is contained in:
parent
7594821e9e
commit
3c0dcea7f0
1 changed files with 4 additions and 12 deletions
|
@ -3,6 +3,8 @@
|
||||||
import EditButton from '~/components/EditButton.svelte'
|
import EditButton from '~/components/EditButton.svelte'
|
||||||
import Divider from '~/components/Divider.svelte'
|
import Divider from '~/components/Divider.svelte'
|
||||||
import CloseButton from '~/components/CloseButton.svelte'
|
import CloseButton from '~/components/CloseButton.svelte'
|
||||||
|
import BlockedBadge from './BlockedBadge.svelte'
|
||||||
|
import ClosedBadge from './ClosedBadge.svelte'
|
||||||
import { getContext } from 'svelte'
|
import { getContext } from 'svelte'
|
||||||
|
|
||||||
export let channel
|
export let channel
|
||||||
|
@ -26,20 +28,10 @@
|
||||||
<h3 class="text-l font-medium text-gray-900 dark:text-white">{channel.displayName}</h3>
|
<h3 class="text-l font-medium text-gray-900 dark:text-white">{channel.displayName}</h3>
|
||||||
<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 h-6"
|
|
||||||
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 h-6"
|
|
||||||
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