Auth: Don't show LDAP CTA card (#72121)

This commit is contained in:
Alexander Zobnin 2023-07-24 13:56:18 +03:00 committed by GitHub
parent 1fde7f7f46
commit a2442ef620
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export const AuthConfigPageUnconnected = ({ providerStatuses, isLoading, loadSet
(p) => providerStatuses[p.id]?.configured && !providerStatuses[p.id]?.enabled
);
const availableProviders = authProviders.filter(
(p) => !providerStatuses[p.id]?.enabled && !providerStatuses[p.id]?.configured
(p) => !providerStatuses[p.id]?.enabled && !providerStatuses[p.id]?.configured && !providerStatuses[p.id]?.hide
);
const firstAvailableProvider = availableProviders?.length ? availableProviders[0] : null;

View File

@ -12,6 +12,7 @@ export interface AuthProviderStatus {
enabled: boolean;
configured: boolean;
configFoundInIniFile?: boolean;
hide?: boolean;
}
export interface SettingsError {