Skip to content

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

chore: main branch apply (#13249)

Danny Xuf3902a17581e
diff --git a/frontend/src/components/Branch/BranchDetailView.vue b/frontend/src/components/Branch/BranchDetailView.vue
index 82487ce8b7..83b827453a 100644
--- a/frontend/src/components/Branch/BranchDetailView.vue
+++ b/frontend/src/components/Branch/BranchDetailView.vue
@@ -61,6 +61,7 @@
{{ $t("branch.merge-rebase.rebase-branch") }}
</NButton>
<NButton
+ v-if="showApplyBranchButton"
type="primary"
@click="handleApplyBranchToDatabase"
>{{ $t("schema-designer.apply-to-database") }}</NButton
@@ -286,6 +287,11 @@ const showRebaseBranchButton = computed(() => {
return allowEdit.value;
});
+const showApplyBranchButton = computed(() => {
+ // only main branches can be applied to databases.
+ return !parentBranch.value;
+});
+
const rebuildMetadataEdit = () => {
const rebuild = schemaDesignerRef.value?.schemaEditor?.rebuildMetadataEdit;
if (typeof rebuild !== "function") {