Browse Source

enhancement: show loader while loading meta

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3342/head
Pranav C 2 years ago
parent
commit
9f5d14592a
  1. 10
      packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/[type]/[title]/[[viewTitle]].vue

10
packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index/[type]/[title]/[[viewTitle]].vue

@ -1,12 +1,18 @@
<script setup lang="ts">
const { getMeta } = useMetas()
const route = useRoute()
const loading = ref(true)
await getMeta(route.params.title as string, true)
getMeta(route.params.title as string, true).finally(() => {
loading.value = false
})
</script>
<template>
<TabsSmartsheet />
<div v-if="loading" class="flex items-center justify-center h-full w-full">
<a-spin size="large" />
</div>
<TabsSmartsheet v-else />
</template>
<style scoped></style>

Loading…
Cancel
Save