Skip to content

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

chore: remove page loading text (#9195)

boojack48566878b77b
diff --git a/frontend/src/layouts/DashboardLayout.vue b/frontend/src/layouts/DashboardLayout.vue
index 1c1cfb1bf8..1f6510beac 100644
--- a/frontend/src/layouts/DashboardLayout.vue
+++ b/frontend/src/layouts/DashboardLayout.vue
@@ -8,50 +8,11 @@
<router-view name="body" />
</ProvideDashboardContext>
</template>
- <template #fallback>
- <div class="flex flex-row justify-between p-4 space-x-2">
- <span class="items-center flex">Loading...</span>
- <button
- class="items-center flex justify-center btn-normal"
- @click.prevent="ping"
- >
- Ping
- </button>
- </div>
- </template>
</Suspense>
</div>
</template>
-<script lang="ts">
-import { defineComponent } from "vue";
+<script lang="ts" setup>
import BannersWrapper from "@/components/BannersWrapper.vue";
import ProvideDashboardContext from "@/components/ProvideDashboardContext.vue";
-import { pushNotification, useActuatorV1Store } from "@/store";
-import { ActuatorInfo } from "@/types/proto/v1/actuator_service";
-
-export default defineComponent({
- name: "DashboardLayout",
- components: {
- ProvideDashboardContext,
- BannersWrapper,
- },
- setup() {
- const actuatorStore = useActuatorV1Store();
-
- const ping = () => {
- actuatorStore.fetchServerInfo().then((info: ActuatorInfo) => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: JSON.stringify(info),
- });
- });
- };
-
- return {
- ping,
- };
- },
-});
</script>
diff --git a/frontend/src/layouts/SQLEditorLayout.vue b/frontend/src/layouts/SQLEditorLayout.vue
index f19c668329..4035a82374 100644
--- a/frontend/src/layouts/SQLEditorLayout.vue
+++ b/frontend/src/layouts/SQLEditorLayout.vue
@@ -8,17 +8,6 @@
<router-view />
</ProvideSQLEditorContext>
</template>
- <template #fallback>
- <div class="flex flex-row justify-between p-4 space-x-2">
- <span class="items-center flex">Loading...</span>
- <button
- class="items-center flex justify-center btn-normal"
- @click.prevent="ping"
- >
- Ping
- </button>
- </div>
- </template>
</Suspense>
</div>
</template>
@@ -28,7 +17,7 @@ import { storeToRefs } from "pinia";
import { computed } from "vue";
import BannersWrapper from "@/components/BannersWrapper.vue";
import ProvideSQLEditorContext from "@/components/ProvideSQLEditorContext.vue";
-import { pushNotification, useActuatorV1Store } from "@/store";
+import { useActuatorV1Store } from "@/store";
const actuatorStore = useActuatorV1Store();
const { pageMode } = storeToRefs(actuatorStore);
@@ -36,14 +25,4 @@ const { pageMode } = storeToRefs(actuatorStore);
const showBanners = computed(() => {
return pageMode.value === "BUNDLED";
});
-
-const ping = () => {
- actuatorStore.fetchServerInfo().then((info) => {
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: JSON.stringify(info),
- });
- });
-};
</script>