Change all snake/camelCase mix and match to camelCase everywhere Fix conversion to not interfer with service interceptors Add dynamic conversion between camelCase and snake_case to services Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/105
39 lines
681 B
Vue
39 lines
681 B
Vue
<template>
|
|
<div class="message is-centered is-info" v-if="loading">
|
|
<div class="message-header">
|
|
<p class="has-text-centered">
|
|
Authenticating...
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import auth from '../../auth'
|
|
import router from '../../router'
|
|
|
|
export default {
|
|
name: 'linkSharingAuth',
|
|
data() {
|
|
return {
|
|
hash: '',
|
|
loading: true,
|
|
}
|
|
},
|
|
created() {
|
|
this.auth()
|
|
},
|
|
methods: {
|
|
auth() {
|
|
auth.linkShareAuth(this.$route.params.share)
|
|
.then((r) => {
|
|
this.loading = false
|
|
router.push({name: 'showList', params: {id: r.listId}})
|
|
})
|
|
.catch(e => {
|
|
this.error(e, this)
|
|
})
|
|
}
|
|
},
|
|
}
|
|
</script>
|