From fdece55480289a4bde2c9b868281200cb2c67b28 Mon Sep 17 00:00:00 2001 From: Simon Backx Date: Wed, 18 May 2022 17:24:38 +0200 Subject: [PATCH] Added auto save to newsletters toggle refs https://github.com/TryGhost/Team/issues/1639 - When enabling/disabling newsletters, the change is saved automatically --- ghost/admin/app/components/settings/newsletters.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ghost/admin/app/components/settings/newsletters.js b/ghost/admin/app/components/settings/newsletters.js index 6f0d654e09..0d9af64cc7 100644 --- a/ghost/admin/app/components/settings/newsletters.js +++ b/ghost/admin/app/components/settings/newsletters.js @@ -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