Skip to content

Commit

Permalink
After 10 years or so, we follow suit that Mailchimp lists are now nam…
Browse files Browse the repository at this point in the history
…ed Mailchimp audiences...
  • Loading branch information
dannyvankooten committed Sep 26, 2024
1 parent 77af346 commit 62a3eee
Show file tree
Hide file tree
Showing 8 changed files with 1,204 additions and 1,204 deletions.
4 changes: 2 additions & 2 deletions assets/src/js/admin/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ const groupingsNotice = function () {
const requiredFieldsNotice = function () {
const missingFields = fields.getAll().filter(f => f.forceRequired === true && !editor.containsField(f.name.toUpperCase()))

let text = '<strong>Heads up!</strong> Your form is missing list fields that are required in Mailchimp. Either add these fields to your form or mark them as optional in Mailchimp.'
let text = '<strong>Heads up!</strong> Your form is missing fields that are required in Mailchimp. Either add these fields to your form or mark them as optional in Mailchimp.'
text += '<br /><ul class="ul-square" style="margin-bottom: 0;"><li>' + missingFields.map(function (f) { return f.title }).join('</li><li>') + '</li></ul>';

(missingFields.length > 0) ? show('required_fields_missing', text) : hide('required_fields_missing')
}

const mailchimpListsNotice = function () {
const text = '<strong>Heads up!</strong> You have not yet selected a Mailchimp list to subscribe people to. Please select at least one list from the <a href="javascript:void(0)" data-tab="settings" class="tab-link">settings tab</a>.'
const text = '<strong>Heads up!</strong> You have not yet selected a Mailchimp audience to subscribe people to. Please select at least one audience from the <a href="javascript:void(0)" data-tab="settings" class="tab-link">settings tab</a>.'

if (settings.getSelectedLists().length > 0) {
hide('no_lists_selected')
Expand Down
Loading

0 comments on commit 62a3eee

Please sign in to comment.