Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: sql editor standalone mode (#8516)
boojack491880b223f6
diff --git a/frontend/src/layouts/SQLEditorLayout.vue b/frontend/src/layouts/SQLEditorLayout.vueindex 171077eb6d..888760d0f0 100644--- a/frontend/src/layouts/SQLEditorLayout.vue+++ b/frontend/src/layouts/SQLEditorLayout.vue@@ -41,7 +41,7 @@ const sqlEditorStore = useSQLEditorStore();const route = useRoute();const showBanners = computed(() => {- return sqlEditorStore.mode !== "BUNDLED";+ return sqlEditorStore.mode === "BUNDLED";});onMounted(() => {diff --git a/frontend/src/views/sql-editor/SQLEditorPage.vue b/frontend/src/views/sql-editor/SQLEditorPage.vueindex 1ed96ce4ce..4f6b2cd1b5 100644--- a/frontend/src/views/sql-editor/SQLEditorPage.vue+++ b/frontend/src/views/sql-editor/SQLEditorPage.vue@@ -203,7 +203,7 @@ const { events: editorEvents } = provideSQLEditorContext();const { showPanel: showSheetPanel } = provideSheetContext();const { show: showSecondarySidebar } = provideSecondarySidebarContext();-const showQuickstart = computed(() => sqlEditorStore.mode !== "BUNDLED");+const showQuickstart = computed(() => sqlEditorStore.mode === "BUNDLED");const isDisconnected = computed(() => tabStore.isDisconnected);const isFetchingSheet = computed(() => sqlEditorStore.isFetchingSheet);diff --git a/frontend/src/views/sql-editor/TabList/TabList.vue b/frontend/src/views/sql-editor/TabList/TabList.vueindex b9dd96f331..df674da07c 100644--- a/frontend/src/views/sql-editor/TabList/TabList.vue+++ b/frontend/src/views/sql-editor/TabList/TabList.vue@@ -42,6 +42,10 @@</button></div>+ <div class="hidden lg:block -mt-0.5">+ <ProfileDropdown v-if="showProfileDropdown" />+ </div>+<ContextMenu ref="contextMenuRef" /></div></template>@@ -54,7 +58,7 @@ import { ref, reactive, nextTick, computed, onMounted, watch } from "vue";import { useI18n } from "vue-i18n";import Draggable from "vuedraggable";import { useEmitteryEventListener } from "@/composables/useEmitteryEventListener";-import { useTabStore } from "@/store";+import { useSQLEditorStore, useTabStore } from "@/store";import type { TabInfo } from "@/types";import { TabMode } from "@/types";import {@@ -62,6 +66,7 @@ import {getSuggestedTabNameFromConnection,sheetTypeForTab,} from "@/utils";+import ProfileDropdown from "../ProfileDropdown";import { useSheetContext } from "../Sheet";import ContextMenu from "./ContextMenu.vue";import TabItem from "./TabItem";@@ -91,6 +96,10 @@ const scrollState = reactive({moreRight: false,});+const showProfileDropdown = computed(() => {+ return useSQLEditorStore().mode === "BUNDLED";+});+const handleSelectTab = async (tab: TabInfo) => {tabStore.setCurrentTabId(tab.id);};