Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Do not show instance column in DatabaseTable if we are showing database for a particular instance
天舟fe01ed319db2
diff --git a/frontend/src/components/DatabaseTable.vue b/frontend/src/components/DatabaseTable.vueindex 62979b4181..e52354800f 100644--- a/frontend/src/components/DatabaseTable.vue+++ b/frontend/src/components/DatabaseTable.vue@@ -72,7 +72,7 @@<BBTableCell v-if="showEnvironmentColumn" class="w-16">{{ environmentName(database.instance.environment) }}</BBTableCell>- <BBTableCell class="w-32">+ <BBTableCell v-if="showInstanceColumn" class="w-32"><div class="flex flex-row items-center space-x-1"><template v-if="database.instance.engine == 'MYSQL'"><img class="h-4 w-auto" src="../assets/db-mysql.png" alt="" />@@ -256,6 +256,10 @@ export default {const currentUser = computed(() => store.getters["auth/currentUser"]());+ const showInstanceColumn = computed(() => {+ return props.mode != "INSTANCE";+ });+const showProjectColumn = computed(() => {return props.mode != "PROJECT" && props.mode != "PROJECT_SHORT";});@@ -307,6 +311,7 @@ export default {};return {+ showInstanceColumn,showProjectColumn,showEnvironmentColumn,showMiscColumn,