Added setting to enable e-mail on quick alerts.

This commit is contained in:
2026-11-12 22:44:07 +01:00
parent 38049937d5
commit 7d9ffba29c
3 changed files with 22 additions and 4 deletions
+2 -4
View File
@@ -124,10 +124,8 @@ async function alertItem() {
...(props.domain === 'entities' && { entities: [props.item.id] }),
...(props.domain === 'scenes' && { scenes: [props.item.id] }),
notify: true,
email: false,
// probably too confusing and annoying to have quick alerts inherit email preference from dialog
// notify: JSON.parse(localStorage.getItem('alert_notify')) ?? true,
// email: JSON.parse(localStorage.getItem('alert_email')) ?? false,
// explicit user preference rather than the dialog's remembered checkbox, which would be too confusing to inherit
email: !!(user.settings?.quickAlertEmails && user.email),
preset: true,
}, {
successFeedback: `Alert set for '${alertLabel}'`,