Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add loading indicator (#19246)

ecmadao88aa4b0d9e29
diff --git a/frontend/src/components/ProvideSQLEditorContext.vue b/frontend/src/components/ProvideSQLEditorContext.vue
index 9580d1895f..91e2afad5e 100644
--- a/frontend/src/components/ProvideSQLEditorContext.vue
+++ b/frontend/src/components/ProvideSQLEditorContext.vue
@@ -13,14 +13,18 @@
<Suspense>
<RoutePermissionGuard
+ v-if="editorStore.projectContextReady"
class="m-6"
:project="project"
:routes="sqlEditorRoutes"
>
- <ProvideAIContext>
- <router-view />
- </ProvideAIContext>
+ <ProvideAIContext>
+ <router-view />
+ </ProvideAIContext>
</RoutePermissionGuard>
+ <div v-else class="flex items-center justify-center h-screen">
+ <BBSpin />
+ </div>
</Suspense>
</template>
@@ -30,6 +34,7 @@ import { debounce, head, omit } from "lodash-es";
import { computed, nextTick, onMounted, watch } from "vue";
import { useI18n } from "vue-i18n";
import { useRoute, useRouter } from "vue-router";
+import { BBSpin } from "@/bbkit";
import RoutePermissionGuard from "@/components/Permission/RoutePermissionGuard.vue";
import { useEmitteryEventListener } from "@/composables/useEmitteryEventListener";
import { useRouteChangeGuard } from "@/composables/useRouteChangeGuard";