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