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: prevent splitpanes error when clicking admin mode button (#17755)
boojack75d253aa252d
diff --git a/frontend/src/views/sql-editor/EditorCommon/AdminModeButton.vue b/frontend/src/views/sql-editor/EditorCommon/AdminModeButton.vueindex d3361f0579..eabdc5afd6 100644--- a/frontend/src/views/sql-editor/EditorCommon/AdminModeButton.vue+++ b/frontend/src/views/sql-editor/EditorCommon/AdminModeButton.vue@@ -5,7 +5,7 @@type="warning":ghost="true":disabled="isDisconnected"- @click="enterAdminMode"+ @click.stop="enterAdminMode"><template #icon><WrenchIcon class="w-4 h-4" />diff --git a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vueindex b4753e0f67..c4b1cb7dc0 100644--- a/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue+++ b/frontend/src/views/sql-editor/EditorCommon/EditorAction.vue@@ -12,7 +12,7 @@type="default":dashed="true"style="--n-padding: 0 8px 0 3px"- @click="exitAdminMode"+ @click.stop="exitAdminMode"><template #icon><ChevronLeftIcon class="w-4 h-4 text-control" />diff --git a/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vueindex cc3363a781..7533828d2d 100644--- a/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue+++ b/frontend/src/views/sql-editor/EditorPanel/EditorPanel.vue@@ -2,12 +2,19 @@<div class="w-full flex-1 flex flex-row items-stretch overflow-hidden"><Panels><template #code-panel>- <StandardPanel v-if="!currentTab || currentTab.mode === 'WORKSHEET'" />+ <StandardPanel+ v-if="!currentTab || currentTab.mode === 'WORKSHEET'"+ :key="`standard-${currentTab?.id || 'default'}`"+ />- <TerminalPanel v-else-if="currentTab.mode === 'ADMIN'" />+ <TerminalPanel+ v-else-if="currentTab.mode === 'ADMIN'"+ :key="`terminal-${currentTab?.id || 'default'}`"+ /><NoPermissionPlaceholderv-else+ :key="`no-permission-${currentTab?.id || 'default'}`":description="$t('database.access-denied')"/></template>