Fixed login positioning glitch on first page visit

This commit is contained in:
Grzegorz Leoniec 2018-12-18 11:51:14 +01:00
parent a9f9cb18f2
commit 1173a28af6
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -1,5 +1,12 @@
<template>
<ds-container width="small">
<transition
name="fade"
appear
>
<ds-container
v-if="ready"
width="small"
>
<ds-space margin="small">
<blockquote>
<p>{{ $t('quotes.african.quote') }}</p>
@ -61,7 +68,7 @@
full-width
name="submit"
type="submit"
icon-right="sign-in"
icon="sign-in"
>
{{ $t('login.login') }}
</ds-button>
@ -79,6 +86,7 @@
</ds-flex>
</ds-card>
</ds-container>
</transition>
</template>
<script>
@ -93,6 +101,7 @@ export default {
layout: 'blank',
data() {
return {
ready: false,
form: {
email: '',
password: ''
@ -109,6 +118,11 @@ export default {
return this.$store.getters['auth/pending']
}
},
mounted() {
setTimeout(() => {
this.ready = true
}, 500)
},
methods: {
async onSubmit() {
try {