Removed subdirectory from blog host in email setting field

no issue
This commit is contained in:
Rish 2019-11-07 17:46:02 +07:00
parent 5aac467b3f
commit f74060b08b
2 changed files with 7 additions and 1 deletions

View File

@ -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) => {

View File

@ -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}}