mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
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 - 5d22b788c8
- This updates the check to correctly validate for from address update for disabling the button
This commit is contained in:
parent
85a77388e2
commit
3f75c2857b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user