Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Show at most 3 instead of 5 notifications at the same time
天舟e245105f810b
diff --git a/frontend/src/App.vue b/frontend/src/App.vueindex 224d7ac292..f99f0c9e9b 100644--- a/frontend/src/App.vue+++ b/frontend/src/App.vue@@ -17,6 +17,9 @@ import { isDev } from "./utils";import { Notification } from "./types";import { BBNotificationItem } from "./bbkit/types";+// Show at most 3 notifications to prevent excessive notification when shit hits the fan.+const MAX_NOTIFICATION_DISPLAY_COUNT = 3;+// Check expiration every 30 sec and logout if expiredconst CHECK_LOGGEDIN_STATE_DURATION = 30 * 1000;@@ -66,8 +69,9 @@ export default {}).then((notification: Notification | undefined) => {if (notification) {- // Show at most 5 notifications to prevent excessive notification when shit hits the fan.- if (state.notificationList.length < 5) {+ if (+ state.notificationList.length < MAX_NOTIFICATION_DISPLAY_COUNT+ ) {const item: BBNotificationItem = {style: notification.style,title: notification.title,