Skip to content

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

fix: delete hint text (#425)

STEVEN64ac268ba29d
diff --git a/frontend/src/locales/en.yml b/frontend/src/locales/en.yml
index c0c2de3fa4..d11cbccaa4 100644
--- a/frontend/src/locales/en.yml
+++ b/frontend/src/locales/en.yml
@@ -1093,11 +1093,13 @@ sql-editor:
can-not-execute-query: Can not execute query when loading data.
rows: row | rows
no-history-found: No history found
+ no-saved-query-found: No saved query found
search-history: Search History
search-saved-queries: Search Saved Queries
queries: Queries
hint-tips:
confirm-to-delete-this-history: Confirm to delete this history?
+ confirm-to-delete-this-saved-query: Confirm to delete this saved query?
please-input-the-tab-label: Please input the tab label!
label:
empty-label-value: <Empty Value>
diff --git a/frontend/src/locales/zh-CN.yml b/frontend/src/locales/zh-CN.yml
index 4fd052c71f..57dd6eeb63 100644
--- a/frontend/src/locales/zh-CN.yml
+++ b/frontend/src/locales/zh-CN.yml
@@ -960,11 +960,13 @@ sql-editor:
can-not-execute-query: 加载数据时无法执行查询
rows: 条记录
no-history-found: 无历史记录
+ no-saved-query-found: 无归档查询语句
search-history: 搜索历史记录
search-saved-queries: 搜索归档查询
queries: 归档查询
hint-tips:
confirm-to-delete-this-history: 确定删除这条记录?
+ confirm-to-delete-this-saved-query: 确定删除这条查询语句?
please-input-the-tab-label: 请输入标签页名称!
label:
empty-label-value: <空值>
diff --git a/frontend/src/views/SqlEditor/AsidePanel/QueryHistoryView.vue b/frontend/src/views/SqlEditor/AsidePanel/QueryHistoryView.vue
index a58fc36f87..f2c342bc01 100644
--- a/frontend/src/views/SqlEditor/AsidePanel/QueryHistoryView.vue
+++ b/frontend/src/views/SqlEditor/AsidePanel/QueryHistoryView.vue
@@ -23,7 +23,7 @@
<span class="text-xs text-gray-500">{{ history.createdAt }}</span>
<NDropdown
trigger="click"
- :options="historyDropdownOptions"
+ :options="actionDropdownOptions"
@select="(key: string) => handleActionBtnClick(key, history)"
@clickoutside="handleActionBtnOutsideClick"
>
@@ -150,7 +150,7 @@ const notifyMessage = computed(() => {
return "";
});
-const historyDropdownOptions = computed(() => [
+const actionDropdownOptions = computed(() => [
{
label: t("common.delete"),
key: "delete",
diff --git a/frontend/src/views/SqlEditor/AsidePanel/SavedQueryView.vue b/frontend/src/views/SqlEditor/AsidePanel/SavedQueryView.vue
index 41bb07f027..15d8a7a42a 100644
--- a/frontend/src/views/SqlEditor/AsidePanel/SavedQueryView.vue
+++ b/frontend/src/views/SqlEditor/AsidePanel/SavedQueryView.vue
@@ -43,7 +43,7 @@
</div>
<NDropdown
trigger="click"
- :options="historyDropdownOptions"
+ :options="actionDropdownOptions"
@select="(key: string) => handleActionBtnClick(key, query)"
@clickoutside="handleActionBtnOutsideClick"
>
@@ -85,7 +85,7 @@
@close="handleHintClose"
>
<DeleteHint
- :content="$t('sql-editor.hint-tips.confirm-to-delete-this-history')"
+ :content="$t('sql-editor.hint-tips.confirm-to-delete-this-saved-query')"
@close="handleHintClose"
@confirm="handleDeleteSavedQuery"
/>
@@ -191,13 +191,13 @@ const notifyMessage = computed(() => {
return "";
}
if (savedQueryList.value.length === null) {
- return t("sql-editor.no-history-found");
+ return t("sql-editor.no-saved-query-found");
}
return "";
});
-const historyDropdownOptions = computed(() => [
+const actionDropdownOptions = computed(() => [
{
label: t("common.delete"),
key: "delete",