Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Support subtitle for BBModal and make AlterSchemaPrepForm use it.
天舟8a0c86ec8cf5
diff --git a/frontend/src/bbkit/BBModal.vue b/frontend/src/bbkit/BBModal.vueindex 91fc728ea7..0b9b7faea4 100644--- a/frontend/src/bbkit/BBModal.vue+++ b/frontend/src/bbkit/BBModal.vue@@ -11,7 +11,13 @@><div><div class="absolute left-0 top-0 my-4 mx-8 text-xl text-main">- {{ $props.title }}+ {{ title }}+ <div+ v-if="subtitle"+ class="pr-1 bg-white text-sm text-control whitespace-nowrap"+ >+ {{ subtitle }}+ </div></div><buttonv-if="showClose"@@ -38,7 +44,7 @@</svg></button></div>- <div class="pt-2 max-h-screen w-full">+ <div class="pt-4 max-h-screen w-full"><slot /></div></div>@@ -56,6 +62,10 @@ export default {required: true,type: String,},+ subtitle: {+ default: "",+ type: String,+ },showClose: {type: Boolean,default: true,diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vueindex 9acdbef5a6..7c9ae2c321 100644--- a/frontend/src/components/QuickActionPanel.vue+++ b/frontend/src/components/QuickActionPanel.vue@@ -298,6 +298,7 @@<BBModalv-if="state.showModal":title="state.modalTitle"+ :subtitle="state.modalSubtitle"@close="state.showModal = false"><template@@ -352,6 +353,7 @@ const DBA_WORKFLOW_APPLICABLE_QUICK_ACTION_LIST: QuickActionType[] = [interface LocalState {showModal: Boolean;modalTitle: string;+ modalSubtitle: string;quickActionType: QuickActionType;}@@ -376,6 +378,7 @@ export default {const state = reactive<LocalState>({showModal: false,modalTitle: "",+ modalSubtitle: "",quickActionType: "quickaction.bytebase.instance.create",});@@ -399,24 +402,28 @@ export default {const createProject = () => {state.modalTitle = "Create project";+ state.modalSubtitle = "";state.quickActionType = "quickaction.bytebase.project.create";state.showModal = true;};const createInstance = () => {state.modalTitle = "Create instance";+ state.modalSubtitle = "";state.quickActionType = "quickaction.bytebase.instance.create";state.showModal = true;};const alterSchema = () => {state.modalTitle = "Alter schema";+ state.modalSubtitle = "Step 1 - choose database";state.quickActionType = "quickaction.bytebase.database.schema.update";state.showModal = true;};const requestDatabase = () => {state.modalTitle = "Request database";+ state.modalSubtitle = "";state.quickActionType = "quickaction.bytebase.database.request";state.showModal = true;};