Files
yucca/packages/yucca-sdk/orchestration-ui/src/lib/components/util/DeviceFlowAction.svelte
T

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}