Skip to content

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

chore: pre-fill filter state to request export panel (#8038)

boojacka8277ba154e5
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
index f8d48653aa..bb2d00a8ac 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/index.vue
@@ -194,6 +194,7 @@ interface LocalState {
}
const props = defineProps<{
+ projectId?: string;
databaseId?: string;
statement?: string;
statementOnly?: boolean;
@@ -265,6 +266,9 @@ const allowCreate = computed(() => {
});
onMounted(async () => {
+ if (props.projectId) {
+ handleProjectSelect(props.projectId);
+ }
if (props.databaseId) {
handleDatabaseSelect(props.databaseId);
}
diff --git a/frontend/src/views/ExportCenter/index.vue b/frontend/src/views/ExportCenter/index.vue
index 234bc89aaa..69aeb76158 100644
--- a/frontend/src/views/ExportCenter/index.vue
+++ b/frontend/src/views/ExportCenter/index.vue
@@ -46,7 +46,10 @@
<RequestExportPanel
v-if="state.showRequestExportPanel"
+ :project-id="state.filterParams.project?.uid"
+ :database-id="state.filterParams.database?.uid"
:redirect-to-issue-page="true"
+ :statement-only="true"
@close="state.showRequestExportPanel = false"
/>