improve: clarify SQL save target tooltip
This commit is contained in:
9 files changed
+13
-1
No files matched your search
@@ -133,7 +133,11 @@ const supportsExPaste = computed(() => supportsSqlInListPaste(props.activeConnec
|
|||||||
const supportsTransaction = computed(() => supportsTransactionFeature(props.activeConnection?.db_type));
|
const supportsTransaction = computed(() => supportsTransactionFeature(props.activeConnection?.db_type));
|
||||||
const hasDefaultDatabaseOption = computed(() => activeDatabaseOptions.value.includes(""));
|
const hasDefaultDatabaseOption = computed(() => activeDatabaseOptions.value.includes(""));
|
||||||
const schemaDatabaseKey = computed(() => props.activeTab.database || (isSingleDb.value ? "_" : ""));
|
const schemaDatabaseKey = computed(() => props.activeTab.database || (isSingleDb.value ? "_" : ""));
|
||||||
const saveTooltip = computed(() => (props.activeTab.objectSource ? t("objects.saveSource") : t("toolbar.saveSql")));
|
const saveTooltip = computed(() => {
|
||||||
|
if (props.activeTab.objectSource) return t("objects.saveSource");
|
||||||
|
if (props.activeTab.externalSqlPath) return t("toolbar.saveSqlFile");
|
||||||
|
return t("toolbar.saveSql");
|
||||||
|
});
|
||||||
const executeShortcutDisplay = computed(() => formatShortcutDisplay(settingsStore.editorSettings.shortcuts.executeSql));
|
const executeShortcutDisplay = computed(() => formatShortcutDisplay(settingsStore.editorSettings.shortcuts.executeSql));
|
||||||
const executeShortcutTooltip = computed(() => t("toolbar.executeShortcut", { shortcut: executeShortcutDisplay.value }));
|
const executeShortcutTooltip = computed(() => t("toolbar.executeShortcut", { shortcut: executeShortcutDisplay.value }));
|
||||||
// executableSql 在无选区时可能是整篇文档;只要有 DML 语句出现就显示预览按钮,
|
// executableSql 在无选区时可能是整篇文档;只要有 DML 语句出现就显示预览按钮,
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ export default {
|
|||||||
previewQuery: "Preview query",
|
previewQuery: "Preview query",
|
||||||
hidePreviewSql: "Hide SQL Preview",
|
hidePreviewSql: "Hide SQL Preview",
|
||||||
saveSql: "Save to SQL Library",
|
saveSql: "Save to SQL Library",
|
||||||
|
saveSqlFile: "Save to Original File",
|
||||||
openSql: "Open SQL file",
|
openSql: "Open SQL file",
|
||||||
exPasteSqlInCondition: "ExPaste: paste as IN condition",
|
exPasteSqlInCondition: "ExPaste: paste as IN condition",
|
||||||
theme: "Theme",
|
theme: "Theme",
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "Vista previa de la consulta",
|
previewQuery: "Vista previa de la consulta",
|
||||||
hidePreviewSql: "Ocultar vista previa de SQL",
|
hidePreviewSql: "Ocultar vista previa de SQL",
|
||||||
saveSql: "Guardar en biblioteca SQL",
|
saveSql: "Guardar en biblioteca SQL",
|
||||||
|
saveSqlFile: "Guardar en el archivo original",
|
||||||
openSql: "Abrir archivo SQL",
|
openSql: "Abrir archivo SQL",
|
||||||
exPasteSqlInCondition: "ExPaste: pegar como condición IN",
|
exPasteSqlInCondition: "ExPaste: pegar como condición IN",
|
||||||
theme: "Tema",
|
theme: "Tema",
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "Anteprima query",
|
previewQuery: "Anteprima query",
|
||||||
hidePreviewSql: "Nascondi anteprima SQL",
|
hidePreviewSql: "Nascondi anteprima SQL",
|
||||||
saveSql: "Salva nella Libreria SQL",
|
saveSql: "Salva nella Libreria SQL",
|
||||||
|
saveSqlFile: "Salva nel file originale",
|
||||||
openSql: "Apri file SQL",
|
openSql: "Apri file SQL",
|
||||||
exPasteSqlInCondition: "ExPaste: incolla come condizione IN",
|
exPasteSqlInCondition: "ExPaste: incolla come condizione IN",
|
||||||
theme: "Tema",
|
theme: "Tema",
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "クエリをプレビュー",
|
previewQuery: "クエリをプレビュー",
|
||||||
hidePreviewSql: "SQLプレビューを非表示",
|
hidePreviewSql: "SQLプレビューを非表示",
|
||||||
saveSql: "SQLライブラリに保存",
|
saveSql: "SQLライブラリに保存",
|
||||||
|
saveSqlFile: "元のファイルに保存",
|
||||||
openSql: "SQLファイルを開く",
|
openSql: "SQLファイルを開く",
|
||||||
exPasteSqlInCondition: "ExPaste: IN条件として貼り付け",
|
exPasteSqlInCondition: "ExPaste: IN条件として貼り付け",
|
||||||
theme: "テーマ",
|
theme: "テーマ",
|
||||||
|
|||||||
@@ -187,6 +187,7 @@ export default withEnglishFallback({
|
|||||||
updatableDriverCount: "업데이트 가능한 드라이버 수",
|
updatableDriverCount: "업데이트 가능한 드라이버 수",
|
||||||
mcpUpdateAvailable: "MCP 서버 업데이트 가능",
|
mcpUpdateAvailable: "MCP 서버 업데이트 가능",
|
||||||
blockDangerousRedisCommands: "위험한 명령 차단",
|
blockDangerousRedisCommands: "위험한 명령 차단",
|
||||||
|
saveSqlFile: "원본 파일에 저장",
|
||||||
},
|
},
|
||||||
multiDbExecute: {
|
multiDbExecute: {
|
||||||
title: "다중 데이터베이스 실행",
|
title: "다중 데이터베이스 실행",
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "Visualizar consulta",
|
previewQuery: "Visualizar consulta",
|
||||||
hidePreviewSql: "Ocultar Visualização SQL",
|
hidePreviewSql: "Ocultar Visualização SQL",
|
||||||
saveSql: "Salvar na Biblioteca SQL",
|
saveSql: "Salvar na Biblioteca SQL",
|
||||||
|
saveSqlFile: "Salvar no arquivo original",
|
||||||
openSql: "Abrir arquivo SQL",
|
openSql: "Abrir arquivo SQL",
|
||||||
exPasteSqlInCondition: "ExPaste: colar como condição IN",
|
exPasteSqlInCondition: "ExPaste: colar como condição IN",
|
||||||
theme: "Tema",
|
theme: "Tema",
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "预览查询",
|
previewQuery: "预览查询",
|
||||||
hidePreviewSql: "隐藏 SQL 预览",
|
hidePreviewSql: "隐藏 SQL 预览",
|
||||||
saveSql: "保存到 SQL 库",
|
saveSql: "保存到 SQL 库",
|
||||||
|
saveSqlFile: "保存到原文件",
|
||||||
openSql: "打开 SQL 文件",
|
openSql: "打开 SQL 文件",
|
||||||
exPasteSqlInCondition: "ExPaste:粘贴为 IN 条件",
|
exPasteSqlInCondition: "ExPaste:粘贴为 IN 条件",
|
||||||
theme: "主题",
|
theme: "主题",
|
||||||
|
|||||||
@@ -175,6 +175,7 @@ export default withEnglishFallback({
|
|||||||
previewQuery: "預覽查詢",
|
previewQuery: "預覽查詢",
|
||||||
hidePreviewSql: "隱藏 SQL 預覽",
|
hidePreviewSql: "隱藏 SQL 預覽",
|
||||||
saveSql: "儲存到 SQL 庫",
|
saveSql: "儲存到 SQL 庫",
|
||||||
|
saveSqlFile: "儲存到原始檔案",
|
||||||
openSql: "開啟 SQL 檔案",
|
openSql: "開啟 SQL 檔案",
|
||||||
exPasteSqlInCondition: "ExPaste:貼上為 IN 條件",
|
exPasteSqlInCondition: "ExPaste:貼上為 IN 條件",
|
||||||
theme: "主題",
|
theme: "主題",
|
||||||
|
|||||||
Reference in new issue
Block a user