Skip to content

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

chore: hide sql editor entry (#9748)

boojack41dcf2cb884c
diff --git a/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue b/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue
index f4863754ea..3fc54d373a 100644
--- a/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue
+++ b/frontend/src/components/IssueV1/components/StageSection/StageInfo/DatabaseInfo.vue
@@ -55,7 +55,7 @@
}}
</span>
- <SQLEditorButtonV1 v-if="database" :database="database" />
+ <SQLEditorButtonV1 v-if="showSQLEditorButton" :database="database" />
</div>
</div>
</template>
@@ -70,13 +70,15 @@ import {
useIssueContext,
} from "@/components/IssueV1/logic";
import { DatabaseV1Name, InstanceV1Name } from "@/components/v2";
-import { useDatabaseV1Store } from "@/store";
+import { useDatabaseV1Store, usePageMode } from "@/store";
import { UNKNOWN_ID } from "@/types";
import { Task_Status, Task_Type } from "@/types/proto/v1/rollout_service";
type DatabaseCreationStatus = "EXISTED" | "PENDING_CREATE" | "CREATED";
const { issue, selectedTask } = useIssueContext();
+const pageMode = usePageMode();
+
const coreDatabaseInfo = computed(() => {
return databaseForTask(issue.value, selectedTask.value);
});
@@ -136,4 +138,8 @@ const database = computedAsync(async () => {
}
return undefined;
}, undefined);
+
+const showSQLEditorButton = computed(() => {
+ return pageMode.value === "BUNDLED" && database.value;
+});
</script>