mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fixed login positioning glitch on first page visit
This commit is contained in:
parent
a9f9cb18f2
commit
1173a28af6
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user