Refined Portal redirect URLs

- added footer text and placeholder for Portal redirect URL input fields
This commit is contained in:
Peter Zimon 2021-03-09 09:22:41 +01:00
parent c65b1b02d5
commit 85f4ae525e
4 changed files with 7 additions and 2 deletions

View File

@ -3,5 +3,6 @@
@type="text" @type="text"
@input={{setValue}} @input={{setValue}}
@focus-out={{validateUrlInput}} @focus-out={{validateUrlInput}}
@placeholder={{placeholder}}
/> />

View File

@ -16,6 +16,7 @@ export default class GhUrlInput extends Component {
this.value = args.value && args.value !== '/' ? (new URL(removeLeadingSlash(args.value), this.baseUrl)).href : ''; this.value = args.value && args.value !== '/' ? (new URL(removeLeadingSlash(args.value), this.baseUrl)).href : '';
this.setResult = args.setResult; this.setResult = args.setResult;
this.validateUrl = args.validateUrl; this.validateUrl = args.validateUrl;
this.placeholder = args.placeholder;
} }
@action @action

View File

@ -226,12 +226,14 @@
@baseUrl={{readonly this.siteUrl}} @baseUrl={{readonly this.siteUrl}}
@setResult={{action "setFreeSignupRedirect"}} @setResult={{action "setFreeSignupRedirect"}}
@validateUrl={{action "validateFreeSignupRedirect"}} @validateUrl={{action "validateFreeSignupRedirect"}}
@placeholder={{readonly this.siteUrl}}
/> />
</div> </div>
<GhErrorMessage <GhErrorMessage
@errors={{settings.errors}} @errors={{settings.errors}}
@property="membersFreeSignupRedirect" @property="membersFreeSignupRedirect"
/> />
<p>Redirect to this URL after free signup</p>
</GhFormGroup> </GhFormGroup>
{{#if (and this.isStripeConfigured (or this.isMonthlyChecked this.isYearlyChecked))}} {{#if (and this.isStripeConfigured (or this.isMonthlyChecked this.isYearlyChecked))}}
<GhFormGroup <GhFormGroup
@ -248,13 +250,14 @@
@baseUrl={{readonly this.siteUrl}} @baseUrl={{readonly this.siteUrl}}
@setResult={{action "setPaidSignupRedirect"}} @setResult={{action "setPaidSignupRedirect"}}
@validateUrl={{action "validatePaidSignupRedirect"}} @validateUrl={{action "validatePaidSignupRedirect"}}
@placeholder={{readonly this.siteUrl}}
/> />
</div> </div>
<GhErrorMessage <GhErrorMessage
@errors={{settings.errors}} @errors={{settings.errors}}
@property="membersPaidSignupRedirect" @property="membersPaidSignupRedirect"
/> />
<p>Members will be sent to these URLs after successful signup. If empty, the homepage will be used.</p> <p>Redirect to this URL after paid signup</p>
</GhFormGroup> </GhFormGroup>
{{/if}} {{/if}}
</div> </div>

View File

@ -579,5 +579,5 @@
} }
.gh-portal-setting-section.redirects p { .gh-portal-setting-section.redirects p {
margin-top: 16px; margin-top: 4px;
} }