From 80fc967a5121b28498c95f87a030148bcae21d05 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:19:04 +0000 Subject: [PATCH] fix(nc-gui): add loading state for extension --- packages/nc-gui/components/extensions/Extension.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/components/extensions/Extension.vue b/packages/nc-gui/components/extensions/Extension.vue index 43cfd630eb..134972b3c8 100644 --- a/packages/nc-gui/components/extensions/Extension.vue +++ b/packages/nc-gui/components/extensions/Extension.vue @@ -8,7 +8,7 @@ const { extensionId, error } = defineProps() const { extensionList, extensionsLoaded, availableExtensions, eventBus } = useExtensions() -const isLoadedExtension = ref(false) +const isLoadedExtension = ref(true) const activeError = ref(error) @@ -74,7 +74,7 @@ onMounted(() => { import(`../../extensions/${extensionManifest.value.entry}/index.vue`).then((mod) => { component.value = markRaw(mod.default) - isLoadedExtension.value = true + isLoadedExtension.value = false }) }) .catch((err) => { @@ -83,7 +83,7 @@ onMounted(() => { return } activeError.value = err - isLoadedExtension.value = true + isLoadedExtension.value = false }) }) @@ -190,6 +190,12 @@ eventBus.on((event, payload) => { + + +
+ +
+