mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix: load base data before view data
This commit is contained in:
parent
65da87bee2
commit
bdb283a80c
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
import { useInfos } from '@/composables/useInfos'
|
||||
import { useRequests } from '@/composables/useRequests'
|
||||
|
@ -10,7 +10,8 @@ const { ssoLink, connected, yunohost, logout, onAppCreated } = useInfos()
|
|||
const { locked } = useRequests()
|
||||
const { spinner, dark } = useSettings()
|
||||
|
||||
onAppCreated()
|
||||
const ready = ref(false)
|
||||
onAppCreated().then(() => ready.value = true)
|
||||
|
||||
onMounted(() => {
|
||||
const copypastaCode = ['ArrowDown', 'ArrowDown', 'ArrowUp', 'ArrowUp']
|
||||
|
@ -106,7 +107,7 @@ onMounted(() => {
|
|||
</header>
|
||||
|
||||
<!-- MAIN -->
|
||||
<MainLayout />
|
||||
<MainLayout v-if="ready" />
|
||||
|
||||
<BModalOrchestrator />
|
||||
|
||||
|
|
Loading…
Reference in a new issue