swaf/src/assets/views/magic_link.svelte

22 lines
691 B
Svelte
Raw Normal View History

2021-06-01 16:14:24 +02:00
<script>
import {locals} from "../ts/stores";
import BaseLayout from "./layouts/BaseLayout.svelte";
import Message from "./components/Message.svelte";
const actionType = $locals.magicLink?.action_type;
const h1 = 'Magic Link' + (actionType ? (' - ' + actionType) : '');
</script>
<BaseLayout title="{$locals.app.name} {h1}" {h1}>
<div class="container">
<div class="panel">
{#if $locals.err}
<Message type="error" content={$locals.err}/>
{:else}
<Message type="success" content="Success!"/>
<p>You can now close this page.</p>
{/if}
</div>
</div>
</BaseLayout>