mirror of
https://github.com/netbirdio/netbird.git
synced 2026-08-30 19:41:30 +02:00
fix(ui): match severity gate case-insensitively
The critical-event gate used a case-sensitive == "critical" where every other status/severity compare in the UI uses strings.EqualFold, so a daemon-side reword to a different case would silently drop the bypass.
This commit is contained in:
@@ -53,7 +53,7 @@ func (t *Tray) onSystemEvent(ev *application.CustomEvent) {
|
||||
return
|
||||
}
|
||||
|
||||
critical := se.Severity == "critical"
|
||||
critical := strings.EqualFold(se.Severity, "critical")
|
||||
t.profileMu.Lock()
|
||||
enabled := t.notificationsEnabled
|
||||
t.profileMu.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user