mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-09-19 21:26:47 +00:00
Fix notification language and event group parity
This commit is contained in:
@@ -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'},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user