diff --git a/components/stashes/heart.vue b/components/stashes/heart.vue index a3c8f3f..e845a8c 100644 --- a/components/stashes/heart.vue +++ b/components/stashes/heart.vue @@ -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}'`, diff --git a/components/user/preferences.vue b/components/user/preferences.vue index fa69a0e..b48dab4 100644 --- a/components/user/preferences.vue +++ b/components/user/preferences.vue @@ -12,6 +12,7 @@ const settings = reactive({ alertNotificationsEnabled: true, alertEmailsEnabled: true, alertEmailsFrequency: null, + quickAlertEmails: false, ...user.settings, }); @@ -53,6 +54,20 @@ async function updateSettings() { +