mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-19 13:21:46 +00:00
feat: route Synology session-cleared notification through unified send()
Replace direct createNotification() call with notificationService.send() so the notification respects user preferences and reaches all enabled channels (in-app, email, webhook) instead of only WebSocket. Registers synology_session_cleared as a proper NotifEventType (inapp-only) and adds localized text for all 14 supported languages.
This commit is contained in:
@@ -112,6 +112,12 @@ const EVENT_NOTIFICATION_CONFIG: Record<string, EventNotifConfig> = {
|
||||
navigateTextKey: 'notif.action.view_admin',
|
||||
navigateTarget: () => '/admin',
|
||||
},
|
||||
synology_session_cleared: {
|
||||
inAppType: 'simple',
|
||||
titleKey: 'notifications.synologySessionCleared.title',
|
||||
textKey: 'notifications.synologySessionCleared.text',
|
||||
navigateTarget: () => null,
|
||||
},
|
||||
};
|
||||
|
||||
// ── Fallback config for unknown event types ────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user