diff --git a/frontend/src/SignupPage/SignupPage.jsx b/frontend/src/SignupPage/SignupPage.jsx index 28f110976c..5a6156b3cf 100644 --- a/frontend/src/SignupPage/SignupPage.jsx +++ b/frontend/src/SignupPage/SignupPage.jsx @@ -135,6 +135,7 @@ class SignupPageComponent extends React.Component { const shouldShowSignupDisabledCard = !this.organizationToken && !configs?.enable_sign_up && !configs?.form?.enable_sign_up; const passwordLabelText = this.organizationToken ? 'Create a password' : 'Password'; + const shouldShowSignInCTA = !this.organizationToken; return (
@@ -163,18 +164,22 @@ class SignupPageComponent extends React.Component { data-cy="workspace-signup-header" >{`Sign up to the workspace - ${configs?.name}`} )} -
- {this.props.t('loginSignupPage.alreadyHaveAnAccount', `Already have an account? `)}   - - {this.props.t('loginSignupPage.signIn', `Sign in`)} - -
+ {shouldShowSignInCTA ? ( +
+ {this.props.t('loginSignupPage.alreadyHaveAnAccount', `Already have an account? `)}   + + {this.props.t('loginSignupPage.signIn', `Sign in`)} + +
+ ) : ( +
+ )} {shouldShowSignupDisabledCard ? ( ) : ( diff --git a/frontend/src/SuccessInfoScreen/LinkExpiredInfoScreen.jsx b/frontend/src/SuccessInfoScreen/LinkExpiredInfoScreen.jsx index cddbcf3875..fadd14faa5 100644 --- a/frontend/src/SuccessInfoScreen/LinkExpiredInfoScreen.jsx +++ b/frontend/src/SuccessInfoScreen/LinkExpiredInfoScreen.jsx @@ -1,9 +1,8 @@ import React from 'react'; import { ButtonSolid } from '@/_components/AppButton'; -import { useNavigate } from 'react-router-dom'; +import { getSubpath } from '@/_helpers/routes'; export const LinkExpiredInfoScreen = function LinkExpiredInfoScreen({ show = true }) { - const navigate = useNavigate(); const darkMode = localStorage.getItem('darkMode') === 'true'; return ( @@ -30,7 +29,9 @@ export const LinkExpiredInfoScreen = function LinkExpiredInfoScreen({ show = tru navigate('/signup')} + onClick={() => { + window.location = `${getSubpath() ? getSubpath() : ''}/signup`; + }} data-cy="back-to-signup-button" > Back to signup diff --git a/server/src/mails/invite_user.hbs b/server/src/mails/invite_user.hbs index f884a8ed57..5c22d93c21 100644 --- a/server/src/mails/invite_user.hbs +++ b/server/src/mails/invite_user.hbs @@ -10,10 +10,12 @@

- {{sender}} - has invited you to join the workspace - - {{organizationName}}. Click the - button below to get started! + {{#if sender}} + {{sender}} has invited you to join the workspace - + {{else}} + You have been invited to join the workspace - + {{/if}} + {{organizationName}}. Click the button below to get started!

Should you have any questions or need assistance, our support team