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