Add per-resource email targets to resource form
This commit is contained in:
1 parent
dd7f3aeeda
commit
7f6cab827d
7 files changed
+19
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user