diff --git a/client/src/components/Settings/NotificationsTab.tsx b/client/src/components/Settings/NotificationsTab.tsx index 4978926b..2b936892 100644 --- a/client/src/components/Settings/NotificationsTab.tsx +++ b/client/src/components/Settings/NotificationsTab.tsx @@ -11,6 +11,7 @@ interface PreferencesMatrix { available_channels: { email: boolean; webhook: boolean; inapp: boolean; ntfy: boolean } event_types: string[] implemented_combos: Record + defaults?: { ntfyServer: string | null } } const CHANNEL_LABEL_KEYS: Record = { @@ -233,7 +234,7 @@ export default function NotificationsTab(): React.ReactElement { type="text" value={ntfyServer} onChange={e => setNtfyServer(e.target.value)} - placeholder={t('settings.ntfyUrl.serverPlaceholder')} + placeholder={matrix.defaults?.ntfyServer || t('settings.ntfyUrl.serverPlaceholder')} style={{ width: '100%', boxSizing: 'border-box', fontSize: 13, padding: '6px 10px', border: '1px solid var(--border-primary)', borderRadius: 6, background: 'var(--bg-primary)', color: 'var(--text-primary)', marginBottom: 6 }} />