mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[Review]
This commit is contained in:
1 parent
79f563a82d
commit
d46a9151fc
27 files changed
+279
-339
No files matched your search
@@ -86,6 +86,7 @@ export default {
|
||||
|
||||
created() {
|
||||
// TEMP
|
||||
// Kravarik: Vyhodit
|
||||
this.$store.dispatch('auth/login', {
|
||||
email: 'xx@asdasd.asd',
|
||||
password: 'sdfsdfsdf'
|
||||
@@ -108,8 +109,10 @@ export default {
|
||||
if (!(await this.v$.$validate())) return
|
||||
try {
|
||||
await this.$store.dispatch('wAuth/updateUserInfo', this.user)
|
||||
|
||||
this.$toast.success('Profil bol úspešne zmenený')
|
||||
} catch (error) {
|
||||
// Kravarik: Posli iba errror
|
||||
this.$toast.error(error.response.data.error)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user