Skip to content

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

Add wording when no anomaly found

天舟04e31c3c6374
diff --git a/frontend/src/views/AnomalyCenterDashboard.vue b/frontend/src/views/AnomalyCenterDashboard.vue
index 68e9fab81e..dd896ff149 100644
--- a/frontend/src/views/AnomalyCenterDashboard.vue
+++ b/frontend/src/views/AnomalyCenterDashboard.vue
@@ -110,16 +110,26 @@
@change-text="(text) => changeSearchText(text)"
/>
</div>
- <AnomalyTable
- v-if="state.selectedIndex == DATABASE_TAB"
- :anomalySectionList="databaseAnomalySectionList"
- :compactSection="false"
- />
- <AnomalyTable
- v-if="state.selectedIndex == INSTANCE_TAB"
- :anomalySectionList="instanceAnomalySectionList"
- :compactSection="false"
- />
+ <template v-if="state.selectedIndex == DATABASE_TAB">
+ <AnomalyTable
+ v-if="databaseAnomalySectionList.length > 0"
+ :anomalySectionList="databaseAnomalySectionList"
+ :compactSection="false"
+ />
+ <div v-else class="text-center text-control-light">
+ Hooray, no database anomaly detected!
+ </div>
+ </template>
+ <template v-else>
+ <AnomalyTable
+ v-if="instanceAnomalySectionList.length > 0"
+ :anomalySectionList="instanceAnomalySectionList"
+ :compactSection="false"
+ />
+ <div v-else class="text-center text-control-light">
+ Hooray, no instance anomaly detected!
+ </div>
+ </template>
</div>
</template>