Skip to content

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

fix: navie-ui transfer bug (#10277)

ecmadao2f27e7cc0e9d
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue b/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
index 55ef12eef8..db03abf197 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/ExportResourceForm/DatabaseResourceSelector.vue
@@ -144,7 +144,6 @@ const renderSourceList: TransferRenderSourceList = ({ onCheck, pattern }) => {
keyField: "value",
checkable: true,
selectable: false,
- virtualScroll: true,
data: sourceTreeOptions.value,
defaultExpandAll: true,
blockLine: true,
@@ -174,7 +173,6 @@ const renderTargetList: TransferRenderSourceList = ({ onCheck }) => {
checkable: true,
selectable: false,
checkOnClick: true,
- virtualScroll: true,
defaultExpandAll: true,
data: targetTreeOptions.value,
blockLine: true,
diff --git a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
index 78daeb1345..617ece35b5 100644
--- a/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
+++ b/frontend/src/components/Issue/panel/RequestQueryPanel/DatabaseResourceForm/DatabaseResourceSelector.vue
@@ -171,7 +171,6 @@ const renderSourceList: TransferRenderSourceList = ({ onCheck, pattern }) => {
checkable: true,
selectable: false,
checkOnClick: true,
- virtualScroll: true,
data: sourceTreeOptions.value,
blockLine: true,
style: "height: 428px", // since <NTransfer> height is 512
@@ -201,7 +200,6 @@ const renderTargetList: TransferRenderSourceList = ({ onCheck }) => {
checkable: true,
selectable: false,
checkOnClick: true,
- virtualScroll: true,
defaultExpandAll: true,
data: targetTreeOptions.value,
blockLine: true,
diff --git a/frontend/src/components/QuickActionPanel.vue b/frontend/src/components/QuickActionPanel.vue
index 85bbd32528..d22d6af85f 100644
--- a/frontend/src/components/QuickActionPanel.vue
+++ b/frontend/src/components/QuickActionPanel.vue
@@ -1,6 +1,8 @@
<template>
<div
+ v-if="availableQuickActionList.length"
class="pt-1 overflow-hidden grid grid-cols-3 gap-x-2 gap-y-4 md:inline-flex items-stretch"
+ v-bind="$attrs"
>
<template
v-for="(quickAction, index) in availableQuickActionList"
@@ -75,12 +77,14 @@
<RequestQueryPanel
v-if="state.showRequestQueryPanel"
+ :project-id="project?.uid"
@close="state.showRequestQueryPanel = false"
/>
<RequestExportPanel
v-if="state.showRequestExportPanel"
:redirect-to-issue-page="true"
+ :project-id="project?.uid"
@close="state.showRequestExportPanel = false"
/>
diff --git a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
index 1deed55f91..30ff945f7f 100644
--- a/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
+++ b/frontend/src/components/v2/Model/DatabaseV1Table/DatabaseOperations.vue
@@ -204,8 +204,8 @@ const canEditDatabase = (
if (isArchivedDatabaseV1(db)) {
return false;
}
- if (!currentUserIamPolicy.allowToChangeDatabaseOfProject(db.project)) {
- return false;
+ if (currentUserIamPolicy.allowToChangeDatabaseOfProject(db.project)) {
+ return true;
}
if (
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index 09d1ec84b1..b7f4b8717e 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -192,9 +192,10 @@
<div
class="w-full flex flex-row justify-between items-center flex-wrap px-4 gap-x-4"
>
- <div v-if="quickActionList.length > 0" class="flex-1 pt-3 pb-4">
- <QuickActionPanel :quick-action-list="quickActionList" />
- </div>
+ <QuickActionPanel
+ :quick-action-list="quickActionList"
+ class="flex-1 pt-3 pb-4"
+ />
</div>
</div>
</div>
diff --git a/frontend/src/views/EnvironmentDashboard.vue b/frontend/src/views/EnvironmentDashboard.vue
index d6c7b57943..bbf400e8eb 100644
--- a/frontend/src/views/EnvironmentDashboard.vue
+++ b/frontend/src/views/EnvironmentDashboard.vue
@@ -1,5 +1,5 @@
<template>
- <div class="h-full flex flex-col">
+ <div class="h-full flex flex-col pt-4">
<NTabs
type="line"
:bar-width="200"
diff --git a/frontend/src/views/ProjectDetail.vue b/frontend/src/views/ProjectDetail.vue
index 20a7509196..194de82c0b 100644
--- a/frontend/src/views/ProjectDetail.vue
+++ b/frontend/src/views/ProjectDetail.vue
@@ -1,7 +1,5 @@
<template>
- <div v-if="quickActionList.length > 0" class="flex-1 pb-4">
- <QuickActionPanel :quick-action-list="quickActionList" />
- </div>
+ <QuickActionPanel :quick-action-list="quickActionList" class="mb-4" />
<template v-if="hash === 'issues'">
<ProjectIssuesPanel id="issues" :project="project" />
</template>
diff --git a/frontend/src/views/project/ProjectDatabaseDashboard.vue b/frontend/src/views/project/ProjectDatabaseDashboard.vue
index 6c122c245f..3113c82542 100644
--- a/frontend/src/views/project/ProjectDatabaseDashboard.vue
+++ b/frontend/src/views/project/ProjectDatabaseDashboard.vue
@@ -1,7 +1,9 @@
<template>
- <div v-if="showQuickActionPanel" class="flex-1 pb-4">
- <QuickActionPanel :quick-action-list="quickActionList" />
- </div>
+ <QuickActionPanel
+ v-if="showQuickActionPanel"
+ :quick-action-list="quickActionList"
+ class="mb-4"
+ />
<ProjectDatabasesPanel :project="project" :database-list="databaseV1List" />
</template>