From a494dc6482e9daaf4fff36709b6c06a3662f51a1 Mon Sep 17 00:00:00 2001 From: Tomas Bures Date: Sun, 23 Sep 2018 21:36:59 +0200 Subject: [PATCH] Added list_unsubscribedisabled option Added TODO file --- TODO.md | 22 ++++++++++++++++++++++ UPGRADE.md | 7 +++++-- client/src/lists/CUD.js | 5 ++++- models/lists.js | 2 +- 4 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 00000000..d618c9aa --- /dev/null +++ b/TODO.md @@ -0,0 +1,22 @@ +### Deletion +- Delete button in Lists +- Check/delete dependencies + +### Templates +- Add MJML template editor +- Include GrapeJS with MJML support +- CKEditor to sandbox +- Add Files support to CKEditor + +### Campaigns +- Statistics for a sent campaign +- List of sent RSS campaigns + +### Pull requests +- Support ldaps:// - 5325f2ea7864ce5f42a9a6df3408af7ffbd32591 +- Support https - abd788d8f4d18b5a977226ba1224cba7f2b7fa9b +- Support warn of failed login - 4bd1e994b27420ba366d9b0429e9014e5bf01f13 +- Add X-Mailer header option in settings to override or disable it - 44fe8882b876bdfd9990110496d16f819dc64ac3 +- Add custom unsubscribe option in a campaign - 68cb8384f7dfdbcaf2932293ec5a2f1ec0a1554e + +- Add API extensions diff --git a/UPGRADE.md b/UPGRADE.md index 4e5b8d8f..7cd48cb2 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,6 +1,6 @@ ## Migration from Mailtrain v1 to Mailtrain v2 -The migration should almost happen automatically. There are however the following caveats: +The migration should happen almost automatically. There are however the following caveats: 1. Structure of config files (under `config`) has changed at many places. Revisit the default config (`config/default.toml`) and update your configs accordingly. @@ -10,4 +10,7 @@ The migration should almost happen automatically. There are however the followin 3. Directory for custom Mosaico templates has changed from `public/mosaico/templates` to `client/static/mosaico/templates`. -4. Imports are not migrated. If you have any pending imports, complete them before migration to v2. \ No newline at end of file +4. Imports are not migrated. If you have any pending imports, complete them before migration to v2. + +5. Zone MTA configuration endpoint (webhooks/zone-mta/sender-config) has changed. The send-configuration CID has to be + part of the URL - e.g. webhooks/zone-mta/sender-config/default. \ No newline at end of file diff --git a/client/src/lists/CUD.js b/client/src/lists/CUD.js index 119e82bd..d5f20727 100644 --- a/client/src/lists/CUD.js +++ b/client/src/lists/CUD.js @@ -41,6 +41,7 @@ export default class CUD extends Component { if (this.props.entity) { this.getFormValuesFromEntity(this.props.entity, data => { data.form = data.default_form ? 'custom' : 'default'; + data.listunsubscribe_disabled = !!data.listunsubscribe_disabled; }); } else { this.populateFormValues({ @@ -53,7 +54,8 @@ export default class CUD extends Component { homepage: '', unsubscription_mode: UnsubscriptionMode.ONE_STEP, namespace: mailtrainConfig.user.namespace, - to_name: '[FIRST_NAME] [LAST_NAME]' + to_name: '[FIRST_NAME] [LAST_NAME]', + listunsubscribe_disabled: false }); } } @@ -202,6 +204,7 @@ export default class CUD extends Component { +