Commit 9fa8bfc1 authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf
Browse files

Explain what the alerts are (fix #286)

parent f5e31110
Pipeline #18036 passed with stage
in 2 minutes and 40 seconds
......@@ -36,6 +36,10 @@ const Alerts = props => {
</div>
</div>
<p className="panel-body alert-info">
{ $t(props.panelDescriptionKey) }
</p>
<AlertCreationModal
modalId={ `alert-${props.alertType}-creation` }
alertType={ props.alertType }
......@@ -75,6 +79,9 @@ Alerts.propTypes = {
// The panel title translation key
panelTitleKey: PropTypes.string.isRequired,
// The panel description translation key
panelDescriptionKey: PropTypes.string.isRequired,
// The existing alerts
alerts: PropTypes.array.isRequired
};
......
......@@ -16,6 +16,7 @@ export default function EmailsParameters() {
sendIfText={ $t('client.settings.emails.send_if_balance_is') }
titleTranslationKey="client.settings.emails.add_balance"
panelTitleKey="client.settings.emails.balance_title"
panelDescriptionKey="client.settings.emails.balance_desc"
/>
<Alerts
......@@ -23,6 +24,7 @@ export default function EmailsParameters() {
sendIfText={ $t('client.settings.emails.send_if_transaction_is') }
titleTranslationKey="client.settings.emails.add_transaction"
panelTitleKey="client.settings.emails.transaction_title"
panelDescriptionKey="client.settings.emails.transaction_desc"
/>
<Reports />
......
......@@ -33,6 +33,10 @@ let Reports = props => {
</div>
</div>
<p className="panel-body alert-info">
{ $t('client.settings.emails.reports_desc') }
</p>
<ReportCreationModal />
<div className="table-responsive">
......
......@@ -250,8 +250,11 @@ module.exports = {
emails: {
add_balance: 'Add a new balance notification',
balance_desc: 'The balance alerts warn you when the balance of your bank account becomes lower or greater (your choice) than the threshold you defined.',
add_transaction: 'Add a new transaction notification',
transaction_desc: 'The transaction alerts warn you when a new transaction is imported and its amount is lower or greater (your choice) than the amount of the threshold you defined.',
add_report: 'Add a new email report',
reports_desc: 'Reports are sent at the frequency of your choice (daily, weekly or monthly) and aggregate a digest of the current state of your bank accounts: balances and new operations.',
account: 'Account',
create: 'Create',
cancel: 'Cancel',
......
......@@ -250,8 +250,11 @@ module.exports = {
emails: {
add_balance: 'Ajouter une notification sur le solde',
balance_desc: 'Les alertes sur solde vous préviennent lorsque le solde de votre compte bancaire devient inférieur ou supérieur (selon votre choix) au seuil que vous avez défini.',
add_transaction: 'Ajouter une notification sur opération',
transaction_desc: `Les alertes sur opérations vous préviennent lorsqu'une nouvelle opération est importée et que le montant de cette dernière est inférieure ou supérieure (selon votre choix) au montant que vous avez défini.`,
add_report: 'Ajouter un nouveau rapport',
reports_desc: `Les rapports vous renseignent à la fréquence de votre choix (chaque jour, semaine ou mois) sur l'état de votre compte bancaire : solde, nouvelles opérations.`,
account: 'Compte',
create: 'Créer',
cancel: 'Annuler',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment