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: minor fixes (#9779)
boojack07da26cb4b79
diff --git a/frontend/src/components/ProjectDatabasesPanel.vue b/frontend/src/components/ProjectDatabasesPanel.vueindex e1e9a70dcb..833060fcd1 100644--- a/frontend/src/components/ProjectDatabasesPanel.vue+++ b/frontend/src/components/ProjectDatabasesPanel.vue@@ -71,6 +71,7 @@<span class="text-main">{{ $t("quick-action.transfer-in-db") }}</span></template></i18n-t>+ <i18n-t v-else keypath="common.no-data" tag="p"></i18n-t></div></div></template>diff --git a/frontend/src/layouts/ProjectLayout.vue b/frontend/src/layouts/ProjectLayout.vueindex 5fd7d98b25..3878320ab1 100644--- a/frontend/src/layouts/ProjectLayout.vue+++ b/frontend/src/layouts/ProjectLayout.vue@@ -1,6 +1,6 @@<template><ArchiveBanner v-if="project.state === State.DELETED" class="py-2" />- <div class="p-6 h-full overflow-auto">+ <div class="p-4 h-full overflow-auto"><HideInStandaloneMode><template v-if="isDefaultProject"><h1 class="mb-4 text-xl font-bold leading-6 text-main truncate">diff --git a/frontend/src/layouts/ProjectV1Layout.vue b/frontend/src/layouts/ProjectV1Layout.vueindex ea56970dd8..3c3bea28de 100644--- a/frontend/src/layouts/ProjectV1Layout.vue+++ b/frontend/src/layouts/ProjectV1Layout.vue@@ -1,6 +1,6 @@<template><ArchiveBanner v-if="project.state === State.DELETED" class="py-2" />- <div class="p-6 h-full overflow-auto">+ <div class="p-4 h-full overflow-auto"><HideInStandaloneMode><template v-if="isDefaultProject"><h1 class="mb-4 text-xl font-bold leading-6 text-main truncate">diff --git a/frontend/src/views/project/ProjectDatabaseDashboard.vue b/frontend/src/views/project/ProjectDatabaseDashboard.vueindex 1ecade6550..7e20735a56 100644--- a/frontend/src/views/project/ProjectDatabaseDashboard.vue+++ b/frontend/src/views/project/ProjectDatabaseDashboard.vue@@ -25,6 +25,7 @@ import {isOwnerOfProjectV1,hasPermissionInProjectV1,getQuickActionList,+ isDatabaseV1Alterable,} from "@/utils";const props = defineProps({@@ -34,6 +35,7 @@ const props = defineProps({},});+const currentUser = useCurrentUserV1();const projectV1Store = useProjectV1Store();const pageMode = usePageMode();@@ -51,8 +53,13 @@ useSearchDatabaseV1List();const databaseV1List = computed(() => {- const list = useDatabaseV1Store().databaseListByProject(project.value.name);- return sortDatabaseV1List(list);+ let list = useDatabaseV1Store().databaseListByProject(project.value.name);+ list = sortDatabaseV1List(list);+ // In standalone mode, only show alterable databases.+ if (pageMode.value === "STANDALONE") {+ list = list.filter((db) => isDatabaseV1Alterable(db, currentUser.value));+ }+ return list;});const quickActionMapByRole = computed(() => {diff --git a/frontend/src/views/sql-editor/TabList/TabList.vue b/frontend/src/views/sql-editor/TabList/TabList.vueindex d2317624c5..f0fcc2d98f 100644--- a/frontend/src/views/sql-editor/TabList/TabList.vue+++ b/frontend/src/views/sql-editor/TabList/TabList.vue@@ -132,7 +132,7 @@ const handleRemoveTab = async (const $dialog = dialog.create({title: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.title"),content: t("sql-editor.hint-tips.confirm-to-close-unsaved-sheet.content"),- type: "info",+ type: "warning",autoFocus: false,closable: false,maskClosable: false,