fix: alert that certain fields in user settings are disabled is always shown (#928)

* fix: alert that certain fields in user settings are disabled is always shown

* fix: wrong inverted check
This commit is contained in:
Meier Lukas
2024-08-08 20:38:17 +02:00
committed by GitHub
parent 81946e50a9
commit 9258c397e0

View File

@@ -58,9 +58,11 @@ export default async function EditUserPage({ params }: Props) {
return (
<Stack>
<Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
{t("management.page.user.fieldsDisabledExternalProvider")}
</Alert>
{!isCredentialsUser && (
<Alert variant="light" color="yellow" icon={<IconExclamationCircle size="1rem" stroke={1.5} />}>
{t("management.page.user.fieldsDisabledExternalProvider")}
</Alert>
)}
<Title>{tGeneral("title")}</Title>
<Group gap="xl">