Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Add manualHide as an option to notification
Tianzhou Chenc809f814f14b
diff --git a/frontend/src/layouts/DashboardLayout.vue b/frontend/src/layouts/DashboardLayout.vueindex 7d3839adec..78676b9089 100644--- a/frontend/src/layouts/DashboardLayout.vue+++ b/frontend/src/layouts/DashboardLayout.vue@@ -76,7 +76,11 @@ export default {state.notification = notification;// We don't want user to miss "CRITICAL" notification and// thus don't automatically dismiss it.- if (notification && notification.style != "CRITICAL") {+ if (+ notification &&+ notification.style != "CRITICAL" &&+ !notification.manualHide+ ) {setTimeout(() => {removeNotification(notification.id);}, NOTIFICAITON_DURATION);diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.tsindex 178faf0798..2b04e48cfe 100644--- a/frontend/src/types/bytebase.ts+++ b/frontend/src/types/bytebase.ts@@ -277,6 +277,7 @@ export type Notification = {style: BBNotificationStyle;title: string;description?: string;+ manualHide?: boolean;};export type Command = {