mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 20:03:12 +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"
|
@type="text"
|
||||||
@input={{setValue}}
|
@input={{setValue}}
|
||||||
@focus-out={{validateUrlInput}}
|
@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.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
|
||||||
|
@ -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>
|
||||||
|
@ -579,5 +579,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.gh-portal-setting-section.redirects p {
|
.gh-portal-setting-section.redirects p {
|
||||||
margin-top: 16px;
|
margin-top: 4px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user