This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-09 17:55:43 +00:00
|
|
|
<template>
|
2019-11-03 12:44:40 +00:00
|
|
|
<div class="message is-centered is-info" v-if="loading">
|
|
|
|
<div class="message-header">
|
|
|
|
<p class="has-text-centered">
|
|
|
|
Authenticating...
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-09 17:55:43 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-09-05 20:35:52 +00:00
|
|
|
import router from '../../router'
|
2019-09-09 17:55:43 +00:00
|
|
|
|
2020-09-05 20:35:52 +00:00
|
|
|
export default {
|
|
|
|
name: 'LinkSharingAuth',
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
hash: '',
|
|
|
|
loading: true,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
this.auth()
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.setTitle('Authenticating...')
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
auth() {
|
|
|
|
this.$store.dispatch('auth/linkShareAuth', this.$route.params.share)
|
|
|
|
.then((r) => {
|
|
|
|
this.loading = false
|
|
|
|
router.push({name: 'list.list', params: {listId: r.list_id}})
|
|
|
|
})
|
|
|
|
.catch(e => {
|
|
|
|
this.error(e, this)
|
|
|
|
})
|
2019-11-03 12:44:40 +00:00
|
|
|
},
|
2020-09-05 20:35:52 +00:00
|
|
|
},
|
|
|
|
}
|
2019-09-09 17:55:43 +00:00
|
|
|
</script>
|