1
0

Use message mixin for handling success and error messages (#51)

Use message mixin everywhere

Add mixin for success and error messages

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/51
This commit is contained in:
konrad
2020-01-30 21:47:08 +00:00
parent a0c4732f81
commit 1170e030f6
25 changed files with 94 additions and 116 deletions

View File

@ -47,7 +47,6 @@
<script>
import WunderlistMigrationService from '../../services/migrator/wunderlist'
import message from '../../message'
export default {
name: 'wunderlist',
@ -77,7 +76,7 @@
this.migrate()
})
.catch(e => {
message.error(e, this)
this.error(e, this)
})
}
},
@ -88,7 +87,7 @@
this.authUrl = r.url
})
.catch(e => {
message.error(e, this)
this.error(e, this)
})
},
migrate() {
@ -99,7 +98,7 @@
this.message = r.message
})
.catch(e => {
message.error(e, this)
this.error(e, this)
})
.finally(() => {
this.isMigrating = false