Skip to content

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

chore: update connection intro (#7639)

ecmadaob50baca81fc3
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 37666f6afb..3c0d82eec1 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1828,7 +1828,7 @@
},
"view-all-tabs": "View all Tabs",
"sheets": "Sheets",
- "connection-holder": "Click nodes on the left panel to get started",
+ "connection-holder": "Associate a database first from the Database Panel on the left",
"link-access": "Link access",
"private": "Private",
"private-desc": "Only you can access this sheet",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 63da4ea2f8..59c026b19d 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -1825,7 +1825,7 @@
},
"view-all-tabs": "Ver todas las pestañas",
"sheets": "Hojas",
- "connection-holder": "Haz clic en los nodos del panel izquierdo para comenzar",
+ "connection-holder": "Asocie una base de datos primero desde el Panel de base de datos a la izquierda",
"link-access": "Acceso al enlace",
"private": "Privado",
"private-desc": "Solo tú puedes acceder a esta hoja",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 474b052312..6b3a37e97a 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1822,7 +1822,7 @@
},
"view-all-tabs": "查看所有标签页",
"sheets": "工作表",
- "connection-holder": "点击左侧数据库列表中的节点来建立连接",
+ "connection-holder": "先从左侧数据库面板关联一个数据库",
"link-access": "链接访问权限",
"private": "私有",
"private-desc": "只有您自己可以访问此工作表",
diff --git a/frontend/src/views/sql-editor/EditorCommon/ConnectionHolder.vue b/frontend/src/views/sql-editor/EditorCommon/ConnectionHolder.vue
index 8cd37f4447..cb14c149e0 100644
--- a/frontend/src/views/sql-editor/EditorCommon/ConnectionHolder.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/ConnectionHolder.vue
@@ -1,10 +1,21 @@
<template>
- <div class="flex items-center justify-center w-full h-full text-gray-400">
- <heroicons-outline:lightning-bolt class="mr-1" />
- <div>
- <p>
- {{ $t("sql-editor.connection-holder") }}
- </p>
+ <div class="flex items-center justify-center w-full h-full">
+ <div
+ class="flex items-center text-blue-600 cursor-pointer"
+ @click="tabStore.asidePanelTab = 'databases'"
+ >
+ <heroicons-outline:lightning-bolt class="mr-1" />
+ <div>
+ <p>
+ {{ $t("sql-editor.connection-holder") }}
+ </p>
+ </div>
</div>
</div>
</template>
+
+<script lang="ts" setup>
+import { useTabStore } from "@/store";
+
+const tabStore = useTabStore();
+</script>