mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixes
This commit is contained in:
parent
4d6bc21fb4
commit
7f2cb00e4f
@ -34,7 +34,7 @@ const apiPost = async (url, payload) => {
|
||||
return { success: true, result: result.error }
|
||||
}
|
||||
if (result.data.state !== 'success') {
|
||||
throw new Error(result.data.errors)
|
||||
throw new Error(result.data.msg)
|
||||
}
|
||||
return { success: true, result }
|
||||
} catch (error) {
|
||||
|
||||
@ -181,11 +181,10 @@ export default {
|
||||
)
|
||||
if (result.success) {
|
||||
this.$toast.success(this.$t('site.thx.reset'))
|
||||
this.cancelEdit()
|
||||
} else {
|
||||
this.$toast.error(this.$t('error.change-password'))
|
||||
this.cancelEdit()
|
||||
}
|
||||
this.cancelEdit()
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user