You've already forked isop-mirror
refactor: update form submission logic to display the forms after requests are processed
This commit is contained in:
@@ -52,7 +52,7 @@ async function handleLogin() {
|
||||
<v-alert v-if="loading" density="compact" text="Prosím čakajte..." title="Spracovávam" type="info"
|
||||
id="login-error-alert" class="mx-auto"></v-alert>
|
||||
|
||||
<v-form v-model="isValid" @submit.prevent="handleLogin">
|
||||
<v-form v-else v-model="isValid" @submit.prevent="handleLogin">
|
||||
<v-text-field v-model="form.email" :rules="[rules.required, rules.email]" label="Email:"
|
||||
variant="outlined" density="comfortable" />
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ async function handleRegistration() {
|
||||
<v-alert v-if="loading" density="compact" text="Prosím čakajte..." title="Spracovávam" type="info"
|
||||
id="login-error-alert" class="mx-auto"></v-alert>
|
||||
|
||||
<v-form v-model="isValid" @submit.prevent="handleRegistration">
|
||||
<v-form v-else v-model="isValid" @submit.prevent="handleRegistration">
|
||||
<v-text-field v-model="form.title" label="Tituly pred:" variant="outlined" density="comfortable" />
|
||||
|
||||
<v-text-field v-model="form.firstName" :rules="[rules.required]" label="Meno:" variant="outlined"
|
||||
|
||||
Reference in New Issue
Block a user