debianize-mobilizon/js/src/views/Error.vue
Thomas Citharel 6353c4f372
Fix missing metainfo on some views
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2021-06-04 13:33:22 +02:00

34 lines
663 B
Vue

<template>
<section class="container">
<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">
import { ErrorCode } from "@/types/enums";
import { Component, Vue } from "vue-property-decorator";
@Component({
metaInfo() {
return {
title: this.$t("Error") as string,
};
},
})
export default class ErrorPage extends Vue {
code: ErrorCode | null = null;
ErrorCode = ErrorCode;
mounted(): void {
this.code = this.$route.query.code as ErrorCode;
}
}
</script>