mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-03-22 21:55:43 -04:00
feature/mobile-layout (#431)
* lazy load cards * shopping list recipe search bug * admin layout fluid * site loader * username support * mobile tabs * set username at signup * update user tests * patch bug on shopping list * public mealplan links * support link (I'm a monster) * icon only on mobile * padding Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
@@ -67,7 +67,15 @@
|
||||
</template>
|
||||
<template v-slot:bottom>
|
||||
<v-card-text>
|
||||
<v-form>
|
||||
<v-form ref="userUpdate">
|
||||
<v-text-field
|
||||
:label="$t('user.username')"
|
||||
required
|
||||
v-model="user.username"
|
||||
:rules="[existsRule]"
|
||||
validate-on-blur
|
||||
>
|
||||
</v-text-field>
|
||||
<v-text-field
|
||||
:label="$t('user.full-name')"
|
||||
required
|
||||
@@ -151,6 +159,9 @@ export default {
|
||||
this.user.avatar = avatar;
|
||||
},
|
||||
async updateUser() {
|
||||
if (!this.$refs.userUpdate.validate()) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
|
||||
const response = await api.users.update(this.user);
|
||||
|
||||
Reference in New Issue
Block a user