mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -07:00
await user updates
This commit is contained in:
parent
6312df30c4
commit
7f8a2b35e2
1 changed files with 2 additions and 2 deletions
|
@ -264,10 +264,10 @@ export default {
|
||||||
|
|
||||||
async save() {
|
async save() {
|
||||||
if (this.editedIndex > -1) {
|
if (this.editedIndex > -1) {
|
||||||
api.users.update(this.editedItem);
|
await api.users.update(this.editedItem);
|
||||||
this.close();
|
this.close();
|
||||||
} else if (this.$refs.newUser.validate()) {
|
} else if (this.$refs.newUser.validate()) {
|
||||||
api.users.create(this.editedItem);
|
await api.users.create(this.editedItem);
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
await this.initialize();
|
await this.initialize();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue