Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Removed subdirectory from blog host in email setting field
Browse files Browse the repository at this point in the history
no issue
  • Loading branch information
rishabhgrg committed Nov 7, 2019
1 parent 71427dc commit 2a3e35b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/components/gh-members-lab-setting.js
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/gh-members-lab-setting.hbs
Expand Up @@ -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}}
Expand Down

0 comments on commit 2a3e35b

Please sign in to comment.