mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 03:44:29 +03:00
Refined Portal redirect URLs
- added footer text and placeholder for Portal redirect URL input fields
This commit is contained in:
parent
c65b1b02d5
commit
85f4ae525e
@ -3,5 +3,6 @@
|
||||
@type="text"
|
||||
@input={{setValue}}
|
||||
@focus-out={{validateUrlInput}}
|
||||
@placeholder={{placeholder}}
|
||||
/>
|
||||
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -579,5 +579,5 @@
|
||||
}
|
||||
|
||||
.gh-portal-setting-section.redirects p {
|
||||
margin-top: 16px;
|
||||
margin-top: 4px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user