Fix notification language and event group parity

This commit is contained in:
Vaso73
2026-09-17 11:45:48 +02:00
committed by VAIO73
parent 376b9504f8
commit f11aba3492
2 changed files with 4 additions and 2 deletions
@@ -151,7 +151,7 @@ function validateGotifyUrl(url: string): { error?: string; warning?: string } {
return {}
}
const EVENT_CATEGORIES = ["vm_ct", "backup", "resources", "storage", "network", "security", "cluster", "services", "health", "updates", "other"].map(key => ({ key }))
const EVENT_CATEGORIES = ["vm_ct", "backup", "resources", "storage", "network", "security", "cluster", "services", "health", "updates", "hardware", "system", "other"].map(key => ({ key }))
const CHANNEL_TYPES = ["telegram", "gotify", "discord", "email", "pushover", "apprise"] as const
@@ -266,7 +266,7 @@ const DEFAULT_CONFIG: NotificationConfig = {
event_categories: {
vm_ct: true, backup: true, resources: true, storage: true,
network: true, security: true, cluster: true, services: true,
health: true, updates: true, other: true,
health: true, updates: true, hardware: true, system: true, other: true,
},
event_toggles: {},
event_types_by_group: {},
@@ -1555,6 +1555,8 @@ EVENT_GROUPS = {
'services': {'label': 'Services', 'description': 'System services, shutdown, reboot'},
'health': {'label': 'Health Monitor', 'description': 'Health checks, degradation, recovery'},
'updates': {'label': 'Updates', 'description': 'System and PVE updates'},
'hardware': {'label': 'Hardware', 'description': 'GPU, PCIe and hardware events'},
'system': {'label': 'System', 'description': 'System and internal service events'},
'other': {'label': 'Other', 'description': 'Uncategorized notifications'},
}