Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
fix: Allow deleting all digits in SMTP port field
rcourtman282b7a73cbd0
diff --git a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsxindex 547b94203d..f4e6239afc 100644--- a/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx+++ b/frontend-modern/src/components/Alerts/EmailProviderSelect.tsx@@ -155,10 +155,20 @@ export function EmailProviderSelect(props: EmailProviderSelectProps) {<label class={labelClass()}>SMTP port</label><inputtype="number"- value={props.config.port}- onInput={(e) =>- props.onChange({ ...props.config, port: parseInt(e.currentTarget.value) || 587 })- }+ value={props.config.port || ''}+ onInput={(e) => {+ const value = e.currentTarget.value;+ // Allow empty field while typing, parse as number when valid+ const port = value === '' ? 0 : parseInt(value, 10);+ props.onChange({ ...props.config, port: isNaN(port) ? 0 : port });+ }}+ onBlur={(e) => {+ // Apply default on blur if empty or invalid+ const value = parseInt(e.currentTarget.value, 10);+ if (!value || isNaN(value)) {+ props.onChange({ ...props.config, port: 587 });+ }+ }}placeholder="587"class={controlClass('px-2 py-1.5')}/>