chore: update alert message

This commit is contained in:
Maël Gangloff 2025-12-10 12:41:43 +01:00
parent 87113eb208
commit 4f59c35e87
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 5 additions and 5 deletions

View File

@ -126,11 +126,11 @@ export default function App(): React.ReactElement {
>
<ConfigurationContext.Provider value={configContextValue}>
<AuthenticatedContext.Provider value={authContextValue}>
{(configuration?.registerEnabled || configuration?.ssoLogin) && isAuthenticated === false && location.pathname !== '/login' &&
{(configuration?.registerEnabled || configuration?.ssoLogin) && isAuthenticated === false && !['/login', '/home'].includes(location.pathname) &&
<Alert
type="warning"
message={t`Please authenticate to take advantage of all features, monitor domains and manage your Connectors.`}
action={<Link to='/login'><Button>{t`Log in`}`</Button></Link>}
message={t`Please log in to access all features, monitor domains, and manage your Connectors.`}
action={<Link to='/login'><Button>{t`Log in`}</Button></Link>}
banner closable/>
}
<Layout hasSider style={{minHeight: '100vh'}}>

View File

@ -9,8 +9,8 @@ msgstr ""
#: assets/App.tsx:132
msgid ""
"Please authenticate to take advantage of all features, monitor domains and "
"manage your Connectors."
"Please log in to access all features, monitor domains, and manage your "
"Connectors."
msgstr ""
#: assets/App.tsx:133