Add per-resource email targets to resource form

This commit is contained in:
nmemmert committed 2025-12-11 09:39:07 -05:00
1 parent dd7f3aeeda
commit 7f6cab827d
7 files changed
+19 -8

No files matched your search

+11
View File
@@ -28,6 +28,7 @@ function Dashboard() {
quiet_hours_end: '',
cert_expiry_days: 30,
sla_target: 99.9,
email_to: '',
});
const [groupData, setGroupData] = useState({ name: '', description: '' });
const navigate = useNavigate();
@@ -468,6 +469,16 @@ function Dashboard() {
/>
</div>
<div className="form-group">
<label>Alert Email Address (Optional)</label>
<input
type="email"
placeholder="user@example.com (leave empty to use global setting)"
value={formData.email_to || ''}
onChange={(e) => setFormData({ ...formData, email_to: e.target.value })}
/>
</div>
<div className="form-actions">
<button type="button" className="btn" onClick={() => setShowModal(false)}>
Cancel