Added setting to enable e-mail on quick alerts.
This commit is contained in:
@@ -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}'`,
|
||||
|
||||
Reference in New Issue
Block a user