mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Refined styles for invite only modal
This commit is contained in:
parent
4a0f3c2403
commit
d8d2accfe4
1 changed files with 4 additions and 3 deletions
|
@ -469,18 +469,19 @@ class SignupPage extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const {site} = this.context;
|
||||
const plansData = this.getPlans();
|
||||
const fields = this.getInputFields({state: this.state});
|
||||
let sectionClass = '';
|
||||
let footerClass = '';
|
||||
|
||||
if (plansData.length <= 1) {
|
||||
if ((plansData.length === 1 && plansData[0].type === 'free') || plansData.length === 0) {
|
||||
if (plansData.length <= 1 || isInviteOnlySite({site})) {
|
||||
if ((plansData.length === 1 && plansData[0].type === 'free') || plansData.length === 0 || isInviteOnlySite({site})) {
|
||||
sectionClass = 'noplan';
|
||||
if (fields.length === 1) {
|
||||
sectionClass = 'single-field';
|
||||
}
|
||||
if (plansData.length === 0) {
|
||||
if (plansData.length === 0 || isInviteOnlySite({site})) {
|
||||
footerClass = 'invite-only';
|
||||
sectionClass = 'invite-only';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue