Integrated e-mail alerts, added dialog option for release alerts.
This commit is contained in:
@@ -125,6 +125,9 @@ async function alertItem() {
|
||||
...(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,
|
||||
preset: true,
|
||||
}, {
|
||||
successFeedback: `Alert set for '${alertLabel}'`,
|
||||
@@ -173,7 +176,7 @@ async function removeAlert() {
|
||||
|
||||
function setAlerted(alert) {
|
||||
// only set alerted status if the current item is the only one in the new stash
|
||||
const items = [...alert.actors, ...alert.tags, ...alert.entities, ...alert.matches];
|
||||
const items = [...alert.actors, ...alert.tags, ...alert.entities, ...alert.matches, ...alert.scenes];
|
||||
|
||||
if (items.length === 1 && alert[props.domain][0]?.id === props.item.id) {
|
||||
itemAlerted.value = true;
|
||||
@@ -219,7 +222,6 @@ async function reloadStashes(newStash) {
|
||||
icon="bell2"
|
||||
class="alert active noselect"
|
||||
@click="removeAlert"
|
||||
@contextmenu.prevent="showAlertDialog = true"
|
||||
/>
|
||||
|
||||
<Icon
|
||||
@@ -228,7 +230,6 @@ async function reloadStashes(newStash) {
|
||||
icon="bell-plus"
|
||||
class="alert partial noselect"
|
||||
@click="alertItem"
|
||||
@contextmenu.prevent="showAlertDialog = true"
|
||||
/>
|
||||
|
||||
<Icon
|
||||
|
||||
Reference in New Issue
Block a user