2019-04-01 09:49:54 +00:00
|
|
|
<template>
|
2019-10-01 18:10:53 +00:00
|
|
|
<section class="container">
|
2019-09-12 09:34:01 +00:00
|
|
|
<span v-if="code === ErrorCode.REGISTRATION_CLOSED">
|
2020-02-18 07:57:00 +00:00
|
|
|
{{ $t("Registration is currently closed.") }}
|
2019-09-12 09:34:01 +00:00
|
|
|
</span>
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2019-09-12 09:34:01 +00:00
|
|
|
<span v-else>
|
2020-02-18 07:57:00 +00:00
|
|
|
{{ $t("Unknown error.") }}
|
2019-09-12 09:34:01 +00:00
|
|
|
</span>
|
2019-10-01 18:10:53 +00:00
|
|
|
</section>
|
2019-04-01 09:49:54 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-02-18 07:57:00 +00:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
|
|
import { ErrorCode } from "@/types/error-code.model";
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2019-04-03 15:29:03 +00:00
|
|
|
@Component
|
|
|
|
export default class ErrorPage extends Vue {
|
|
|
|
code: ErrorCode | null = null;
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2019-04-03 15:29:03 +00:00
|
|
|
ErrorCode = ErrorCode;
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2019-04-03 15:29:03 +00:00
|
|
|
mounted() {
|
2020-02-18 07:57:00 +00:00
|
|
|
this.code = this.$route.query.code as ErrorCode;
|
2019-04-01 09:49:54 +00:00
|
|
|
}
|
2019-04-03 15:29:03 +00:00
|
|
|
}
|
2019-04-01 09:49:54 +00:00
|
|
|
</script>
|