From 3f75c2857b7ba420244095b050e76c90f4d36156 Mon Sep 17 00:00:00 2001 From: Rish Date: Tue, 30 Jun 2020 12:16:48 +0530 Subject: [PATCH] Fixed incorrect from address check for button refs https://github.com/TryGhost/Ghost/issues/10318 - The check for disabled update button for from address was reversed in this commit - https://github.com/TryGhost/Ghost-Admin/commit/5d22b788c85d2f7654d81c260790408a04a28994 - This updates the check to correctly validate for from address update for disabling the button --- ghost/admin/app/components/gh-members-lab-setting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/components/gh-members-lab-setting.js b/ghost/admin/app/components/gh-members-lab-setting.js index d407e9dadb..f67501724e 100644 --- a/ghost/admin/app/components/gh-members-lab-setting.js +++ b/ghost/admin/app/components/gh-members-lab-setting.js @@ -81,7 +81,7 @@ export default Component.extend({ disableUpdateFromAddressButton: computed('fromAddress', function () { const savedFromAddress = this.get('settings.membersFromAddress') || ''; - if (savedFromAddress.includes('@') && this.blogDomain) { + if (!savedFromAddress.includes('@') && this.blogDomain) { return (this.fromAddress === `${savedFromAddress}@${this.blogDomain}`); } return (this.fromAddress === savedFromAddress);