mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
🐛Fixed signup button and icon in invite mode
refs https://github.com/TryGhost/Team/issues/579 We added a new setting to explicitly set `invite-only` mode which was not handled in the signup button and header icon for signup page
This commit is contained in:
parent
c4aee97469
commit
a1506b824f
@ -336,7 +336,7 @@ class SignupPage extends React.Component {
|
||||
const {action, site, brandColor, pageQuery} = this.context;
|
||||
|
||||
const availablePlans = getSitePlans({site, pageQuery});
|
||||
if (availablePlans.length === 0) {
|
||||
if (availablePlans.length === 0 || isInviteOnlySite({site})) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -440,7 +440,7 @@ class SignupPage extends React.Component {
|
||||
return (
|
||||
<img className='gh-portal-signup-logo' src={siteLogo} alt={site.title} />
|
||||
);
|
||||
} else if (plansData.length === 0) {
|
||||
} else if (plansData.length === 0 || isInviteOnlySite({site})) {
|
||||
return (
|
||||
<InvitationIcon className='gh-portal-icon gh-portal-icon-invitation' />
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user