Skip to content

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

feat: wording (#3399)

Liu Jic8208cc32282
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 27f25f5e16..fdaddbb82a 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -1316,7 +1316,10 @@
"search-sheets": "Search Sheets",
"hint-tips": {
"confirm-to-delete-this-history": "Confirm to delete this history?",
- "confirm-to-close-unsaved-tab": "Confirm to close unsaved tab?"
+ "confirm-to-close-unsaved-sheet": {
+ "title": "Close the unsaved sheet?",
+ "content": "Close the sheet and lose any unsaved data?"
+ }
},
"please-input-the-tab-label": "Please input the tab label!",
"copy-code": "Copy code",
@@ -1350,7 +1353,8 @@
"tab-mode": {
"readonly": "Read-only",
"admin": "Admin"
- }
+ },
+ "close-sheet": "Close sheet"
},
"label": {
"empty-label-value": "<Empty Value>",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 0c3d032a04..845055b559 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -1316,7 +1316,10 @@
"search-sheets": "搜索工作表",
"hint-tips": {
"confirm-to-delete-this-history": "确定删除这条记录?",
- "confirm-to-close-unsaved-tab": "确定关闭未保存的标签页?"
+ "confirm-to-close-unsaved-sheet": {
+ "title": "确定关闭未保存的工作表?",
+ "content": "关闭当前工作表会丢失所有未保存的数据?"
+ }
},
"please-input-the-tab-label": "请输入标签页名称!",
"copy-code": "复制代码",
@@ -1350,7 +1353,8 @@
"tab-mode": {
"readonly": "只读",
"admin": "管理员"
- }
+ },
+ "close-sheet": "关闭工作表"
},
"label": {
"empty-label-value": "<空值>",
diff --git a/frontend/src/views/sql-editor/TabList/TabList.vue b/frontend/src/views/sql-editor/TabList/TabList.vue
index 6679abce92..cb77009db4 100644
--- a/frontend/src/views/sql-editor/TabList/TabList.vue
+++ b/frontend/src/views/sql-editor/TabList/TabList.vue
@@ -83,17 +83,18 @@ const handleAddTab = () => {
const handleRemoveTab = async (tab: TabInfo, index: number) => {
if (!tab.isSaved) {
const $dialog = dialog.create({
- title: t("sql-editor.hint-tips.confirm-to-close-unsaved-tab"),
+ title: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.title"),
+ content: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.content"),
type: "info",
onPositiveClick() {
+ remove(index);
$dialog.destroy();
},
- async onNegativeClick() {
- remove(index);
+ onNegativeClick() {
$dialog.destroy();
},
- negativeText: t("common.confirm"),
- positiveText: t("common.cancel"),
+ positiveText: t("sql-editor.close-sheet"),
+ negativeText: t("common.cancel"),
showIcon: false,
});
} else {