feat: express global status in mail subject

New format is: `[Xen Orchestra][Success | Failure] Backup report for $tag`

Fixes vatesfr/xo-web#1463
This commit is contained in:
Julien Fontanet 2016-09-05 10:38:17 +02:00
parent be503f1341
commit 4fb6bef04c

View File

@ -150,7 +150,7 @@ class BackupReportsXoPlugin {
return Promise.all([
xo.sendEmail && xo.sendEmail({
to: this._mailsReceivers,
subject: `Backup Reports for "${tag}" (Xen Orchestra)`,
subject: `[Xen Orchestra][${globalSuccess ? 'Success' : 'Failure'}] Backup report for ${tag}`,
markdown
}),
xo.sendToXmppClient && xo.sendToXmppClient({