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-11-27 18:27:44 +00:00
|
|
|
import { ErrorCode } from "@/types/enums";
|
2020-02-18 07:57:00 +00:00
|
|
|
import { Component, Vue } from "vue-property-decorator";
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2021-05-25 14:21:29 +00:00
|
|
|
@Component({
|
|
|
|
metaInfo() {
|
|
|
|
return {
|
|
|
|
title: this.$t("Error") as string,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
})
|
2019-04-03 15:29:03 +00:00
|
|
|
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
|
|
|
|
2020-11-27 18:27:44 +00:00
|
|
|
mounted(): void {
|
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>
|