Remove deleted WP users from subscribers [MAILPOET-1012]

This commit is contained in:
stoletniy
2017-07-21 17:48:48 +03:00
parent 4062e0662d
commit 78f9945296
2 changed files with 16 additions and 14 deletions

View File

@@ -156,14 +156,12 @@ const item_actions = [
api_version: window.mailpoet_api_version,
endpoint: 'segments',
action: 'synchronize'
}).done((response) => {
}).done(() => {
MailPoet.Modal.loading(false);
if(response === true) {
MailPoet.Notice.success(
(MailPoet.I18n.t('listSynchronized')).replace('%$1s', item.name)
);
refresh();
}
MailPoet.Notice.success(
(MailPoet.I18n.t('listSynchronized')).replace('%$1s', item.name)
);
refresh();
}).fail((response) => {
MailPoet.Modal.loading(false);
if(response.errors.length > 0) {