Browse Source

feat(gui): show loader while loading meta

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

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

@ -22,6 +22,7 @@ watch(
until(tables) until(tables)
.toMatch((tables) => tables.length > 0) .toMatch((tables) => tables.length > 0)
.then(() => { .then(() => {
loading.value = true
getMeta(tableTitle as string, true).finally(() => (loading.value = false)) getMeta(tableTitle as string, true).finally(() => (loading.value = false))
}) })
}, },
@ -30,7 +31,13 @@ watch(
</script> </script>
<template> <template>
<div class="w-full h-full"> <div class="w-full h-full relative">
<LazyTabsSmartsheet :active-tab="activeTab"/> <LazyTabsSmartsheet :active-tab="activeTab"/>
<general-overlay :model-value="loading" inline transition class="!bg-opacity-15">
<div class="flex items-center justify-center h-full w-full !bg-white !bg-opacity-85 z-1000">
<a-spin size="large" />
</div>
</general-overlay>
</div> </div>
</template> </template>

Loading…
Cancel
Save