Add eslint
This commit is contained in:
@@ -44,7 +44,7 @@ async function submit() {
|
||||
submitPending.value = true;
|
||||
|
||||
try {
|
||||
const result = await $fetch(`/api/hunt/${props.huntId}/join`, {
|
||||
await $fetch(`/api/hunt/${props.huntId}/join`, {
|
||||
body: JSON.stringify(data),
|
||||
method: 'POST'
|
||||
});
|
||||
@@ -78,8 +78,8 @@ async function submit() {
|
||||
<h3 class="text-3xl">Join a team</h3>
|
||||
<div class="mt-4 flex flex-col gap-4">
|
||||
<VaSelect
|
||||
:options="teams"
|
||||
v-model="data.team"
|
||||
:options="teams"
|
||||
value-by="id"
|
||||
track-by="id"
|
||||
searchable
|
||||
@@ -104,7 +104,7 @@ async function submit() {
|
||||
</template>
|
||||
</VaInput>
|
||||
|
||||
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
|
||||
<VaAlert v-if="error" color="danger">{{ t(error) }}</VaAlert>
|
||||
</div>
|
||||
<template #footer>
|
||||
<VaButtonGroup
|
||||
@@ -117,8 +117,8 @@ async function submit() {
|
||||
:disabled="
|
||||
data.password.length < 3 || data.team === null || submitPending
|
||||
"
|
||||
@click="submit"
|
||||
:loading="submitPending || pending"
|
||||
@click="submit"
|
||||
>Join</VaButton
|
||||
>
|
||||
</VaButtonGroup>
|
||||
|
||||
Reference in New Issue
Block a user