mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 01:28:55 +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:
@@ -107,6 +107,10 @@ const fr: NotificationLocale = {
|
||||
title: 'Réservations transférées à vérifier',
|
||||
body: `Réservations transférées en attente dans TREK : ${p.count}. Chacune indique pourquoi elle n’a pas été ajoutée automatiquement.`,
|
||||
}),
|
||||
mail_ingest_paused: () => ({
|
||||
title: 'Import des e-mails en pause',
|
||||
body: 'TREK n’accepte pas les e-mails de réservation transférés pour le moment, attendez donc avant d’en transférer. Vos adresses restent et fonctionneront de nouveau au retour de l’import, et les réservations déjà ajoutées restent dans vos voyages.',
|
||||
}),
|
||||
plugin_notification: (p) => ({ title: p.title ?? '', body: p.body ?? '' }),
|
||||
},
|
||||
passwordReset: {
|
||||
|
||||
@@ -60,6 +60,8 @@ const notif: TranslationStrings = {
|
||||
'notif.mail_booking_added.shared': '{actor} a ajouté {booking} à {trip} depuis un e-mail transféré',
|
||||
'notif.mail_booking_pending.title': 'Réservations transférées à vérifier',
|
||||
'notif.mail_booking_pending.text': 'Réservations transférées en attente : {count}',
|
||||
'notif.mail_ingest_paused.title': 'Import des e-mails en pause',
|
||||
'notif.mail_ingest_paused.text': 'Les e-mails de réservation transférés ne sont pas acceptés pour le moment. Vos adresses restent et fonctionneront de nouveau au retour de l’import.',
|
||||
'notif.action.undo': 'Annuler',
|
||||
'notif.action.keep': 'Garder',
|
||||
'notif.action.review': 'Vérifier',
|
||||
|
||||
Reference in New Issue
Block a user