Add eslint
This commit is contained in:
@@ -28,6 +28,8 @@ async function submit() {
|
||||
pending.value = true;
|
||||
|
||||
try {
|
||||
// TODO: show toast with invite code
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const result = await $fetch(`/api/hunt/${props.huntId}/team`, {
|
||||
body: JSON.stringify(data),
|
||||
method: 'POST'
|
||||
@@ -56,14 +58,14 @@ async function submit() {
|
||||
<div class="mt-4 flex flex-col gap-4">
|
||||
<VaInput v-model="data.name" label="Name" placeholder="My cool team" />
|
||||
<VaTextarea
|
||||
v-model="data.description"
|
||||
max-rows="4"
|
||||
min-rows="2"
|
||||
v-model="data.description"
|
||||
label="Description"
|
||||
placeholder="The best team!"
|
||||
/>
|
||||
<p>An invite code will be generated automatically.</p>
|
||||
<VaAlert color="danger" v-if="error">{{ t(error) }}</VaAlert>
|
||||
<VaAlert v-if="error" color="danger">{{ t(error) }}</VaAlert>
|
||||
</div>
|
||||
<template #footer>
|
||||
<VaButtonGroup :loading="pending" :disabled="pending">
|
||||
@@ -71,8 +73,8 @@ async function submit() {
|
||||
<VaButton
|
||||
color="success"
|
||||
:disabled="data.name.length < 3 || pending"
|
||||
@click="submit"
|
||||
:loading="pending"
|
||||
@click="submit"
|
||||
>Create</VaButton
|
||||
>
|
||||
</VaButtonGroup>
|
||||
|
||||
Reference in New Issue
Block a user