Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: hide open ai button in admin mode (#13655)
Liu Jid03e0164cc22
diff --git a/frontend/src/views/sql-editor/EditorCommon/OpenAIButton.vue b/frontend/src/views/sql-editor/EditorCommon/OpenAIButton.vueindex f19daa7ec4..689631403c 100644--- a/frontend/src/views/sql-editor/EditorCommon/OpenAIButton.vue+++ b/frontend/src/views/sql-editor/EditorCommon/OpenAIButton.vue@@ -57,7 +57,11 @@ const openAIKey = computed(const { showAIChatBox } = useSQLEditorContext();const showButton = computed(() => {- return openAIKey.value && !tabStore.isDisconnected;+ return (+ openAIKey.value &&+ !tabStore.isDisconnected &&+ tabStore.currentTab?.mode !== "ADMIN"+ );});const buttonProps = computed(() => {