mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
8e30973f3a
commit
3ff4b9dcef
1 changed files with 9 additions and 7 deletions
|
@ -25,21 +25,20 @@ export default {
|
||||||
layout: 'modal',
|
layout: 'modal',
|
||||||
name: 'Authorize',
|
name: 'Authorize',
|
||||||
middleware: ['auth'],
|
middleware: ['auth'],
|
||||||
head: { title: 'Authorize' },
|
|
||||||
data () {
|
|
||||||
return {
|
|
||||||
client: { name: 'Test' }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
async asyncData ({ $axios, query }) {
|
async asyncData ({ $axios, query }) {
|
||||||
// retrieve client validity
|
// retrieve client validity
|
||||||
try {
|
try {
|
||||||
const client = await $axios.$get(`/client/${query.client_id}`)
|
const client = await $axios.$get(`/client/${query.client_id}`)
|
||||||
return { client }
|
return { client }
|
||||||
} catch(e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
client: { name: 'Test' }
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['settings']),
|
...mapState(['settings']),
|
||||||
authorizeURL () {
|
authorizeURL () {
|
||||||
|
@ -48,5 +47,8 @@ export default {
|
||||||
return `oauth/authorize?${query}`
|
return `oauth/authorize?${query}`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
head () {
|
||||||
|
return { title: `${this.settings.title} - Authorize` }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue