mirror of
https://github.com/immich-app/yucca.git
synced 2026-09-30 13:33:00 +08:00
22 lines
479 B
Svelte
22 lines
479 B
Svelte
<script lang="ts">
|
|
import type { DeviceFlow } from "$lib/services/deviceFlow.service.svelte";
|
|
import { Button } from "@immich/ui";
|
|
|
|
type Props = {
|
|
flow: DeviceFlow;
|
|
};
|
|
|
|
const { flow }: Props = $props();
|
|
</script>
|
|
|
|
{#if flow.state.opened}
|
|
<Button shape="round" fullWidth onclick={flow.start}>Try again</Button>
|
|
{:else}
|
|
<Button
|
|
shape="round"
|
|
fullWidth
|
|
disabled={!flow.state.verificationUri}
|
|
onclick={flow.open}>Continue to login</Button
|
|
>
|
|
{/if}
|