mirror of
https://github.com/TryGhost/Ghost-Admin.git
synced 2023-12-14 02:33:04 +01:00
Added mailgun domain to admin settings
This commit is contained in:
parent
194a7147b2
commit
af66904cfa
2 changed files with 16 additions and 0 deletions
|
@ -23,6 +23,10 @@ export default Component.extend({
|
|||
subscriptionSettings.stripeConfig = stripeProcessor.config;
|
||||
subscriptionSettings.allowSelfSignup = !!subscriptionSettings.allowSelfSignup;
|
||||
subscriptionSettings.fromAddress = subscriptionSettings.fromAddress || '';
|
||||
if (Object.keys(subscriptionSettings).includes('mailgunApiKey')) {
|
||||
subscriptionSettings.mailgunApiKey = subscriptionSettings.mailgunApiKey || '';
|
||||
subscriptionSettings.mailgunDomain = subscriptionSettings.mailgunDomain || '';
|
||||
}
|
||||
|
||||
return subscriptionSettings;
|
||||
}),
|
||||
|
@ -73,6 +77,9 @@ export default Component.extend({
|
|||
if (key === 'mailgunApiKey') {
|
||||
subscriptionSettings.mailgunApiKey = event.target.value;
|
||||
}
|
||||
if (key === 'mailgunDomain') {
|
||||
subscriptionSettings.mailgunDomain = event.target.value;
|
||||
}
|
||||
this.setMembersSubscriptionSettings(subscriptionSettings);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -198,6 +198,15 @@
|
|||
Find your Mailgun API keys here »
|
||||
</a>
|
||||
{{/gh-form-group}}
|
||||
|
||||
{{#gh-form-group}}
|
||||
<label class="fw6 f8">Mailgun domain</label>
|
||||
{{gh-text-input
|
||||
value=(readonly subscriptionSettings.mailgunDomain)
|
||||
input=(action "setSubscriptionSettings" "mailgunDomain")
|
||||
class="mt1"
|
||||
}}
|
||||
{{/gh-form-group}}
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/liquid-if}}
|
||||
|
|
Loading…
Reference in a new issue