mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 13:10:29 +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:
@@ -113,6 +113,10 @@ const cs: NotificationLocale = {
|
||||
title: 'Přeposlané rezervace ke kontrole',
|
||||
body: `Přeposlané rezervace čekající na vás v TREK: ${p.count}. U každé je uvedeno, proč nebyla přidána sama.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Import e-mailů pozastaven',
|
||||
body: 'TREK zatím nepřijímá přeposlané e-maily s rezervacemi, proto je zatím nepřeposílejte. Vaše adresy zůstávají a znovu budou fungovat, až se import vrátí, a již přidané rezervace zůstávají ve vašich cestách.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -61,6 +61,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} přidal(a) {booking} do {trip} z přeposlaného e-mailu',
|
||||
'notif.mail_booking_pending.title': 'Přeposlané rezervace ke kontrole',
|
||||
'notif.mail_booking_pending.text': 'Přeposlané rezervace čekající na vás: {count}',
|
||||
'notif.mail_ingest_paused.title': 'Import e-mailů pozastaven',
|
||||
'notif.mail_ingest_paused.text': 'Přeposlané e-maily s rezervacemi se zatím nepřijímají. Vaše adresy zůstávají a znovu budou fungovat, až se import vrátí.',
|
||||
'notif.action.undo': 'Vrátit zpět',
|
||||
'notif.action.keep': 'Ponechat',
|
||||
'notif.action.review': 'Zkontrolovat',
|
||||
|
||||
Reference in New Issue
Block a user