generated from Nich87/Svelte-Flowbite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:show Modal if can't download videos for region
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script lang="ts"> | ||
import { Modal, Button } from 'flowbite-svelte'; | ||
import { ExclamationCircleOutline } from 'flowbite-svelte-icons'; | ||
import { popupRegionErrorModal, togglepopupRegionErrorModal } from '$lib/store'; | ||
</script> | ||
|
||
{#if popupRegionErrorModal} | ||
<Modal | ||
bind:open={$popupRegionErrorModal} | ||
on:close={() => togglepopupRegionErrorModal()} | ||
size="xs" | ||
autoclose | ||
outsideclose | ||
> | ||
<div class="text-center"> | ||
<ExclamationCircleOutline class="mx-auto mb-4 text-gray-400 w-12 h-12 dark:text-gray-200" /> | ||
<h3 class="mb-5 text-lg font-normal text-gray-500 dark:text-gray-400"> | ||
この動画はあなたの地域では利用出来ません。 | ||
</h3> | ||
<Button color="red" class="mr-2">OK</Button> | ||
</div> | ||
</Modal> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters