2022-07-12 10:55:28 +02:00
|
|
|
<template>
|
|
|
|
<section class="container mx-auto">
|
|
|
|
<span v-if="code === ErrorCode.REGISTRATION_CLOSED">
|
|
|
|
{{ t("Registration is currently closed.") }}
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span v-else>
|
|
|
|
{{ t("Unknown error.") }}
|
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { ErrorCode } from "@/types/enums";
|
2024-04-10 14:36:21 +02:00
|
|
|
import { useHead } from "@/utils/head";
|
2022-07-12 10:55:28 +02:00
|
|
|
import { useI18n } from "vue-i18n";
|
|
|
|
import { useRouteQuery } from "vue-use-route-query";
|
|
|
|
import { computed } from "vue";
|
|
|
|
|
|
|
|
const { t } = useI18n({ useScope: "global" });
|
|
|
|
|
|
|
|
useHead({
|
|
|
|
title: computed(() => t("Error")),
|
|
|
|
});
|
|
|
|
|
|
|
|
const code = useRouteQuery("code", null);
|
|
|
|
</script>
|