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">
|
|
|
|
{{ $t('Registration is currently closed.') }}
|
|
|
|
</span>
|
2019-04-01 09:49:54 +00:00
|
|
|
|
2019-09-12 09:34:01 +00:00
|
|
|
<span v-else>
|
|
|
|
{{ $t('Unknown error.') }}
|
|
|
|
</span>
|
2019-10-01 18:10:53 +00:00
|
|
|
</section>
|
2019-04-01 09:49:54 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2019-04-03 15:29:03 +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() {
|
|
|
|
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>
|