rudeshark.net/packages/client/src/pages/signup-complete.vue

38 lines
749 B
Vue
Raw Normal View History

<template>
2023-04-08 02:01:42 +02:00
<div>
{{ i18n.ts.processing }}
</div>
</template>
<script lang="ts" setup>
2023-04-08 02:01:42 +02:00
import { onMounted } from "vue";
import * as os from "@/os";
import { login } from "@/account";
import { i18n } from "@/i18n";
import { definePageMetadata } from "@/scripts/page-metadata";
const props = defineProps<{
code: string;
}>();
onMounted(async () => {
await os.alert({
2023-04-08 02:01:42 +02:00
type: "info",
text: i18n.t("clickToFinishEmailVerification", { ok: i18n.ts.gotIt }),
});
2023-04-08 02:01:42 +02:00
const res = await os.apiWithDialog("signup-pending", {
code: props.code,
});
2023-04-08 02:01:42 +02:00
login(res.i, "/");
});
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.signup,
2023-04-08 02:01:42 +02:00
icon: "ph-user ph-bold ph-lg",
});
</script>