Added auto save to newsletters toggle

refs https://github.com/TryGhost/Team/issues/1639

- When enabling/disabling newsletters, the change is saved automatically
This commit is contained in:
Simon Backx 2022-05-18 17:24:38 +02:00
parent 1dc3026aba
commit fdece55480

View File

@ -85,6 +85,11 @@ export default class Newsletters extends Component {
}
this.recipientsSelectValue = this._getDerivedRecipientsSelectValue();
// Force a save when the toggle is changed
// this is required
// eslint-disable-next-line no-console
this.settings.save().catch(console.error);
}
@action