mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix page reload on submit
This commit is contained in:
parent
a969fd664e
commit
b21a6f54d5
7 changed files with 13 additions and 21 deletions
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-form ref="newGroup" @submit="createGroup">
|
<v-form ref="newGroup" @submit.prevent="createGroup">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="newGroupName"
|
v-model="newGroupName"
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
<v-btn color="grey" text @click="groupDialog = false">
|
<v-btn color="grey" text @click="groupDialog = false">
|
||||||
{{ $t("general.cancel") }}
|
{{ $t("general.cancel") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn color="primary" type="submit" @click.prevent="createGroup">
|
<v-btn color="primary" type="submit">
|
||||||
{{ $t("general.create") }}
|
{{ $t("general.create") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-form ref="newUser" @submit="save">
|
<v-form ref="newUser" @submit.prevent="save">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-row class="justify-center mt-3">
|
<v-row class="justify-center mt-3">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
<v-btn color="grey" text @click="close">
|
<v-btn color="grey" text @click="close">
|
||||||
{{ $t("general.cancel") }}
|
{{ $t("general.cancel") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn color="primary" type="submit" @click.prevent="save">
|
<v-btn color="primary" type="submit">
|
||||||
{{ $t("general.save") }}
|
{{ $t("general.save") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
{{ $t("user.user-id-with-value", { id: editedItem.id }) }}
|
{{ $t("user.user-id-with-value", { id: editedItem.id }) }}
|
||||||
</v-toolbar-title>
|
</v-toolbar-title>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-form ref="newUser" @submit="save">
|
<v-form ref="newUser" @submit.prevent="save">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col cols="12" sm="12" md="6">
|
<v-col cols="12" sm="12" md="6">
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
<v-btn color="grey" text @click="close">
|
<v-btn color="grey" text @click="close">
|
||||||
{{ $t("general.cancel") }}
|
{{ $t("general.cancel") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn color="primary" type="submit" @click.prevent="save">
|
<v-btn color="primary" type="submit">
|
||||||
{{ $t("general.save") }}
|
{{ $t("general.save") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-card-title> </v-card-title>
|
<v-card-title> </v-card-title>
|
||||||
<v-form @submit="select">
|
<v-form @submit.prevent="select">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
:label="$t('settings.theme.theme-name')"
|
:label="$t('settings.theme.theme-name')"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
<v-btn color="grey" text @click="dialog = false">
|
<v-btn color="grey" text @click="dialog = false">
|
||||||
{{ $t("general.cancel") }}
|
{{ $t("general.cancel") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn color="success" text type="submit" @click.prevent="select" :disabled="!themeName">
|
<v-btn color="success" text type="submit" :disabled="!themeName">
|
||||||
{{ $t("general.create") }}
|
{{ $t("general.create") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
|
|
||||||
<v-form @submit="login">
|
<v-form @submit.prevent="login">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-if="!options.isLoggingIn"
|
v-if="!options.isLoggingIn"
|
||||||
|
@ -47,14 +47,12 @@
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="options.isLoggingIn"
|
v-if="options.isLoggingIn"
|
||||||
@click.prevent="login"
|
|
||||||
dark
|
dark
|
||||||
color="primary"
|
color="primary"
|
||||||
block="block"
|
block="block"
|
||||||
type="submit"
|
type="submit"
|
||||||
>{{ $t("user.sign-in") }}
|
>{{ $t("user.sign-in") }}
|
||||||
</v-btn
|
</v-btn>
|
||||||
>
|
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
||||||
<v-alert v-if="error" outlined class="mt-3 mb-0" type="error">
|
<v-alert v-if="error" outlined class="mt-3 mb-0" type="error">
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
have a valid invitation link. If you haven't recieved an invitation you
|
have a valid invitation link. If you haven't recieved an invitation you
|
||||||
are unable to sign-up. To recieve a link, contact the sites administrator.
|
are unable to sign-up. To recieve a link, contact the sites administrator.
|
||||||
<v-divider class="mt-3"></v-divider>
|
<v-divider class="mt-3"></v-divider>
|
||||||
<v-form ref="signUpForm" @submit="signUp">
|
<v-form ref="signUpForm" @submit.prevent="signUp">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="user.name"
|
v-model="user.name"
|
||||||
light="light"
|
light="light"
|
||||||
|
@ -66,7 +66,6 @@
|
||||||
<v-card-actions>
|
<v-card-actions>
|
||||||
<v-btn
|
<v-btn
|
||||||
v-if="options.isLoggingIn"
|
v-if="options.isLoggingIn"
|
||||||
@click.prevent="signUp"
|
|
||||||
dark
|
dark
|
||||||
color="primary"
|
color="primary"
|
||||||
block="block"
|
block="block"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
<v-form ref="urlForm" @submit="createRecipe">
|
<v-form ref="urlForm" @submit.prevent="createRecipe">
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
<v-text-field
|
<v-text-field
|
||||||
v-model="recipeURL"
|
v-model="recipeURL"
|
||||||
|
@ -47,12 +47,7 @@
|
||||||
<v-btn color="grey" text @click="reset">
|
<v-btn color="grey" text @click="reset">
|
||||||
{{ $t("general.close") }}
|
{{ $t("general.close") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
<v-btn
|
<v-btn color="success" text type="submit" :loading="processing">
|
||||||
color="success"
|
|
||||||
text
|
|
||||||
@click.prevent="createRecipe"
|
|
||||||
:loading="processing"
|
|
||||||
>
|
|
||||||
{{ $t("general.submit") }}
|
{{ $t("general.submit") }}
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-card-actions>
|
</v-card-actions>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue