mirror of
https://github.com/immich-app/immich.git
synced 2025-11-18 13:32:37 +09:00
27 lines
846 B
Svelte
27 lines
846 B
Svelte
<script lang="ts">
|
|
import FullScreenModal from '$lib/components/shared-components/full-screen-modal.svelte';
|
|
import PurchaseActivationSuccess from '$lib/components/shared-components/purchasing/purchase-activation-success.svelte';
|
|
import PurchaseContent from '$lib/components/shared-components/purchasing/purchase-content.svelte';
|
|
|
|
import Portal from '$lib/components/shared-components/portal/portal.svelte';
|
|
|
|
export let onClose: () => void;
|
|
|
|
let showProductActivated = false;
|
|
</script>
|
|
|
|
<Portal>
|
|
<FullScreenModal showLogo title={''} {onClose} width="wide">
|
|
{#if showProductActivated}
|
|
<PurchaseActivationSuccess onDone={onClose} />
|
|
{:else}
|
|
<PurchaseContent
|
|
onActivate={() => {
|
|
showProductActivated = true;
|
|
}}
|
|
showMessage={false}
|
|
/>
|
|
{/if}
|
|
</FullScreenModal>
|
|
</Portal>
|