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"
@input={{setValue}}
@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.setResult = args.setResult;
this.validateUrl = args.validateUrl;
this.placeholder = args.placeholder;
}
@action

View File

@ -226,12 +226,14 @@
@baseUrl={{readonly this.siteUrl}}
@setResult={{action "setFreeSignupRedirect"}}
@validateUrl={{action "validateFreeSignupRedirect"}}
@placeholder={{readonly this.siteUrl}}
/>
</div>
<GhErrorMessage
@errors={{settings.errors}}
@property="membersFreeSignupRedirect"
/>
<p>Redirect to this URL after free signup</p>
</GhFormGroup>
{{#if (and this.isStripeConfigured (or this.isMonthlyChecked this.isYearlyChecked))}}
<GhFormGroup
@ -248,13 +250,14 @@
@baseUrl={{readonly this.siteUrl}}
@setResult={{action "setPaidSignupRedirect"}}
@validateUrl={{action "validatePaidSignupRedirect"}}
@placeholder={{readonly this.siteUrl}}
/>
</div>
<GhErrorMessage
@errors={{settings.errors}}
@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>
{{/if}}
</div>

View File

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