Skip to content

Always return alerts if emails are enabled or for export

Nicolas Frandeboeuf requested to merge nicofrand/kresus:returnAlerts into master

We only return the alerts on Kresus' load if there is an email recipient. But once the user fulfills the email recipient input the alerts do not show up because none was returned initially and we don't ask the server again.

This MR always return the alerts if the emails are enabled, or if this is an export (it made sense to me but I have no strong opinion here).

The client already hide the alerts editors if there is not email recipient: https://framagit.org/kresusapp/kresus/-/blob/master/client/components/settings/emails/index.js#L45.

Merge request reports