gancio-upstream/pages/setup/Completed.vue

40 lines
897 B
Vue
Raw Normal View History

2021-09-27 11:12:14 +02:00
<template lang="pug">
v-container
v-card-title.d-block.text-h5.text-center(v-text="$t('setup.completed')")
2021-10-19 16:38:35 +02:00
v-card-text(v-html="$t('setup.completed_description', user)")
2021-09-27 11:12:14 +02:00
v-card-actions
v-btn(text @click='next' color='primary' :loading='loading' :disabled='loading') {{$t('setup.start')}}
v-icon(v-text='mdiArrowRight')
2021-09-27 11:12:14 +02:00
</template>
<script>
import { mdiArrowRight } from '@mdi/js'
2021-09-27 11:12:14 +02:00
export default {
data () {
return {
mdiArrowRight,
2021-09-27 11:12:14 +02:00
loading: false,
user: {
email: 'admin',
password: ''
}
}
},
methods: {
next () {
2021-10-18 15:45:16 +02:00
window.location='/admin'
2021-09-27 11:12:14 +02:00
},
async start (user) {
this.user = { ...user }
this.loading = true
try {
await this.$axios.$get('/ping')
this.loading = false
} catch (e) {
setTimeout(() => this.start(user), 1000)
}
}
}
}
</script>