Skip to content

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

chore(frontend): wording when no databases in project (#3284)

Liu Ji377bb98905de
diff --git a/frontend/src/components/AlterSchemaPrepForm/ProjectStandardView.vue b/frontend/src/components/AlterSchemaPrepForm/ProjectStandardView.vue
index 91a64b41f6..46e4f7e124 100644
--- a/frontend/src/components/AlterSchemaPrepForm/ProjectStandardView.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/ProjectStandardView.vue
@@ -3,7 +3,10 @@
<template v-if="state.alterType === 'MULTI_DB'">
<!-- multiple stage view -->
- <div class="textinfolabel">
+ <div v-if="databaseList.length === 0" class="textinfolabel">
+ {{ $t("alter-schema.no-databases-in-project") }}
+ </div>
+ <div v-else class="textinfolabel">
{{ $t("alter-schema.alter-multiple-db-info") }}
</div>
<slot name="header"></slot>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index e987cb8942..fe9115bed5 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -536,7 +536,8 @@
"alter-single-db": "Alter single database",
"alter-multiple-db": "Manual Selection",
"alter-multiple-db-info": "For each environment, you can select multiple databases to alter their schemas or just skip that environment. This allows you to compose a single pipeline to propagate changes across multiple environments.",
- "alter-db-group": "By Deployment Config"
+ "alter-db-group": "By Deployment Config",
+ "no-databases-in-project": "No databases in this project. Click New DB or Transfer in DB to add databases."
},
"quick-action": {
"create-db": "Create database",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index cd9ec833f5..005c8e7ef2 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -536,7 +536,8 @@
"alter-single-db": "变更单个数据库",
"alter-multiple-db": "手动选择数据库",
"alter-multiple-db-info": "针对每个环境,您可以选择多个数据库进行变更或者直接跳过该环境,这样您就可以在一条流水线上把变更逐步作用到多个环境。",
- "alter-db-group": "按部署的配置"
+ "alter-db-group": "按部署的配置",
+ "no-databases-in-project": "该项目里没有数据库。点击 创建数据库 或 转移数据库 以添加数据库。"
},
"quick-action": {
"create-db": "创建数据库",