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: add loading and disabled status to merge branch button (#8972)
boojack19e78723efcf
diff --git a/frontend/src/components/Branch/BranchDetailView.vue b/frontend/src/components/Branch/BranchDetailView.vueindex b7122750a7..33d030d8c2 100644--- a/frontend/src/components/Branch/BranchDetailView.vue+++ b/frontend/src/components/Branch/BranchDetailView.vue@@ -25,9 +25,12 @@><template v-if="!state.isEditing"><NButton @click="handleEdit">{{ $t("common.edit") }}</NButton>- <NButton @click="handleMergeBranch">{{- $t("schema-designer.merge-branch")- }}</NButton>+ <NButton+ :disabled="!ready"+ :loading="!ready"+ @click="handleMergeBranch"+ >{{ $t("schema-designer.merge-branch") }}</NButton+ ><NButton type="primary" @click="handleApplySchemaDesignClick">{{$t("schema-designer.apply-to-database")}}</NButton>@@ -166,7 +169,7 @@ const router = useRouter();const databaseStore = useDatabaseV1Store();const changeHistoryStore = useChangeHistoryStore();const schemaDesignStore = useSchemaDesignStore();-const { schemaDesignList } = useSchemaDesignList();+const { schemaDesignList, ready } = useSchemaDesignList();const { runSQLCheck } = provideSQLCheckContext();const dialog = useDialog();const state = reactive<LocalState>({