mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
Removed subdirectory from blog host in email setting field
no issue
This commit is contained in:
parent
5aac467b3f
commit
f74060b08b
@ -7,6 +7,12 @@ export default Component.extend({
|
||||
config: service(),
|
||||
mediaQueries: service(),
|
||||
|
||||
blogDomain: computed('config.blogDomain', function () {
|
||||
let domain = this.config.blogDomain || '';
|
||||
const host = domain.replace('https://', '').replace('http://', '').split('/');
|
||||
return (host && host[0]) || '';
|
||||
}),
|
||||
|
||||
subscriptionSettings: computed('settings.membersSubscriptionSettings', function () {
|
||||
let subscriptionSettings = this.parseSubscriptionSettings(this.get('settings.membersSubscriptionSettings'));
|
||||
let stripeProcessor = subscriptionSettings.paymentProcessors.find((proc) => {
|
||||
|
@ -181,7 +181,7 @@
|
||||
input=(action "setSubscriptionSettings" "fromAddress")
|
||||
class="w20"
|
||||
}}
|
||||
<span class="gh-input-append"> @{{config.blogDomain}}</span>
|
||||
<span class="gh-input-append"> @{{blogDomain}}</span>
|
||||
</div>
|
||||
<div class="f8 fw4 midgrey mt1">Your members will receive system emails from this address</div>
|
||||
{{/gh-form-group}}
|
||||
|
Loading…
Reference in New Issue
Block a user