Fix lint issues

And disable eslint when building in prod mode

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-11-30 10:24:11 +01:00
parent da42522073
commit 2d541f2e32
161 changed files with 3869 additions and 1236 deletions

View File

@@ -1,11 +1,18 @@
<template>
<section class="section container">
<h1 class="title" v-if="loading">{{ $t("Your account is being validated") }}</h1>
<h1 class="title" v-if="loading">
{{ $t("Your account is being validated") }}
</h1>
<div v-else>
<div v-if="failed">
<b-message :title="$t('Error while validating account')" type="is-danger">
<b-message
:title="$t('Error while validating account')"
type="is-danger"
>
{{
$t("Either the account is already validated, either the validation token is incorrect.")
$t(
"Either the account is already validated, either the validation token is incorrect."
)
}}
</b-message>
</div>
@@ -60,7 +67,10 @@ export default class Validate extends Vue {
});
if (user.defaultActor) {
await changeIdentity(this.$apollo.provider.defaultClient, user.defaultActor);
await changeIdentity(
this.$apollo.provider.defaultClient,
user.defaultActor
);
await this.$router.push({ name: RouteName.HOME });
} else {
// If the user didn't register any profile yet, let's create one for them