mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +00:00
chore: update alert message
This commit is contained in:
parent
87113eb208
commit
4f59c35e87
@ -126,11 +126,11 @@ export default function App(): React.ReactElement {
|
|||||||
>
|
>
|
||||||
<ConfigurationContext.Provider value={configContextValue}>
|
<ConfigurationContext.Provider value={configContextValue}>
|
||||||
<AuthenticatedContext.Provider value={authContextValue}>
|
<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
|
<Alert
|
||||||
type="warning"
|
type="warning"
|
||||||
message={t`Please authenticate to take advantage of all features, monitor domains and manage your Connectors.`}
|
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>}
|
action={<Link to='/login'><Button>{t`Log in`}</Button></Link>}
|
||||||
banner closable/>
|
banner closable/>
|
||||||
}
|
}
|
||||||
<Layout hasSider style={{minHeight: '100vh'}}>
|
<Layout hasSider style={{minHeight: '100vh'}}>
|
||||||
|
|||||||
@ -9,8 +9,8 @@ msgstr ""
|
|||||||
|
|
||||||
#: assets/App.tsx:132
|
#: assets/App.tsx:132
|
||||||
msgid ""
|
msgid ""
|
||||||
"Please authenticate to take advantage of all features, monitor domains and "
|
"Please log in to access all features, monitor domains, and manage your "
|
||||||
"manage your Connectors."
|
"Connectors."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: assets/App.tsx:133
|
#: assets/App.tsx:133
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user