mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
feat(mail-ingest): tell every address holder once when the import stops
A plan without the import switches it off from outside the server, and an admin can switch it off too; the plan promises a "mail import paused" note. An hourly job sends mail_ingest_paused to each holder of a live address with their own import on, notes the pause first, and forgets it once it is back.
This commit is contained in:
@@ -108,6 +108,10 @@ const et: NotificationLocale = {
|
||||
title: 'Ülevaatamist ootavad edastatud broneeringud',
|
||||
body: `TREKis ootavad sind edastatud broneeringud: ${p.count}. Igaühe juures on kirjas, miks seda ise ei lisatud.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Kirjade import on peatatud',
|
||||
body: 'TREK ei võta edastatud broneeringukirju praegu vastu, seega oota nende edastamisega. Sinu aadressid jäävad alles ja töötavad uuesti, kui import tagasi on, ning juba lisatud broneeringud jäävad sinu reisidesse.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} lisas edastatud kirjast {booking} reisile {trip}',
|
||||
'notif.mail_booking_pending.title': 'Ülevaatamist ootavad edastatud broneeringud',
|
||||
'notif.mail_booking_pending.text': 'Sind ootavad edastatud broneeringud: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Kirjade import on peatatud',
|
||||
'notif.mail_ingest_paused.text': 'Edastatud broneeringukirju praegu vastu ei võeta. Sinu aadressid jäävad alles ja töötavad uuesti, kui import tagasi on.',
|
||||
'notif.action.undo': 'Võta tagasi',
|
||||
'notif.action.keep': 'Jäta alles',
|
||||
'notif.action.review': 'Vaata üle',
|
||||
|
||||
Reference in New Issue
Block a user