Fix using the error data prop in components (#53)

Fix error msg data props everywhere

Fix error msg data props

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/53
This commit is contained in:
konrad 2020-01-31 15:33:14 +00:00
parent 5f0b5a0945
commit 604488c68c
5 changed files with 22 additions and 22 deletions

View file

@ -26,8 +26,8 @@
<router-link :to="{ name: 'getPasswordReset' }" class="reset-password-link">Reset your password</router-link>
</div>
</div>
<div class="notification is-danger" v-if="error">
{{ error }}
<div class="notification is-danger" v-if="errorMsg">
{{ errorMsg }}
</div>
</form>
</div>
@ -47,7 +47,7 @@
username: '',
password: ''
},
error: '',
errorMsg: '',
confirmedEmailSuccess: false,
loading: false
}
@ -66,7 +66,7 @@
})
.catch(e => {
cancel()
this.error = e.response.data.message
this.errorMsg = e.response.data.message
})
}
@ -78,7 +78,7 @@
methods: {
submit() {
this.loading = true
this.error = ''
this.errorMsg = ''
let credentials = {
username: this.credentials.username,
password: this.credentials.password