Skip to content

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

No longer need mode parameter since we don't use AnomalyTable in the instance detail view

天舟54384278136e
diff --git a/frontend/src/components/AnomalyTable.vue b/frontend/src/components/AnomalyTable.vue
index 752056669e..d443dc8113 100644
--- a/frontend/src/components/AnomalyTable.vue
+++ b/frontend/src/components/AnomalyTable.vue
@@ -156,10 +156,6 @@ export default {
name: "AnomalyTable",
components: { CodeDiff },
props: {
- mode: {
- required: true,
- type: String as PropType<"INSTANCE" | "DATABASE">,
- },
anomalySectionList: {
required: true,
type: Object as PropType<BBTableSectionDataSource<Anomaly>[]>,
@@ -237,12 +233,6 @@ export default {
const action = (anomaly: Anomaly): Action => {
switch (anomaly.type) {
case "bb.anomaly.instance.connection":
- if (props.mode == "INSTANCE") {
- return {
- onClick: () => {},
- title: "",
- };
- }
return {
onClick: () => {
router.push({
@@ -255,12 +245,6 @@ export default {
title: "Check instance",
};
case "bb.anomaly.instance.migration-schema":
- if (props.mode == "INSTANCE") {
- return {
- onClick: () => {},
- title: "",
- };
- }
return {
onClick: () => {
router.push({
diff --git a/frontend/src/components/DatabaseOverviewPanel.vue b/frontend/src/components/DatabaseOverviewPanel.vue
index 0978e7bbe5..95aaf227ab 100644
--- a/frontend/src/components/DatabaseOverviewPanel.vue
+++ b/frontend/src/components/DatabaseOverviewPanel.vue
@@ -4,10 +4,7 @@
<div class="text-lg leading-6 font-medium text-main mb-4 flex flex-row">
Anomalies
</div>
- <AnomalyTable
- :mode="'DATABASE'"
- :anomalySectionList="anomalySectionList"
- />
+ <AnomalyTable :anomalySectionList="anomalySectionList" />
</div>
<div
v-else
diff --git a/frontend/src/views/AnomalyCenterDashboard.vue b/frontend/src/views/AnomalyCenterDashboard.vue
index 9b6bfa025f..5633eaebd7 100644
--- a/frontend/src/views/AnomalyCenterDashboard.vue
+++ b/frontend/src/views/AnomalyCenterDashboard.vue
@@ -28,13 +28,11 @@
</div>
<AnomalyTable
v-if="state.selectedIndex == DATABASE_TAB"
- :mode="'DATABASE'"
:anomalySectionList="databaseAnomalySectionList"
:multiple="true"
/>
<AnomalyTable
v-if="state.selectedIndex == INSTANCE_TAB"
- :mode="'INSTANCE'"
:anomalySectionList="instanceAnomalySectionList"
:multiple="true"
/>