Skip to content

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

chore: limit showQueryContextSettingPopover (#9384)

Danny Xu5e2b37292c54
diff --git a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
index 1d2b3f2ec9..7937539318 100644
--- a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
+++ b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue
@@ -130,6 +130,7 @@ import {
import type { ExecuteConfig, ExecuteOption, FeatureType } from "@/types";
import { TabMode, UNKNOWN_ID } from "@/types";
import { formatEngineV1, keyboardShortcutStr } from "@/utils";
+import { customTheme } from "@/utils/customTheme";
import { useSQLEditorContext } from "../context";
import AdminModeButton from "./AdminModeButton.vue";
import QueryContextSettingPopover from "./QueryContextSettingPopover.vue";
@@ -229,7 +230,8 @@ const queryList = computed(() => {
const showQueryContextSettingPopover = computed(() => {
return (
Boolean(selectedInstance.value) &&
- tabStore.currentTab.mode !== TabMode.Admin
+ tabStore.currentTab.mode !== TabMode.Admin &&
+ customTheme.value === "lixiang"
);
});