fix: correct typo in property name from "Entreprise" to "Enterprise" (#9916)
The property name "hasValidEntrepriseKey" was corrected to "hasValidEnterpriseKey" across multiple files for consistency and accuracy. This ensures proper alignment with naming conventions and avoids potential issues in usage or understanding.
This commit is contained in:
@ -18,7 +18,7 @@ export type CurrentWorkspace = Pick<
|
||||
| 'isGoogleAuthEnabled'
|
||||
| 'isMicrosoftAuthEnabled'
|
||||
| 'isPasswordAuthEnabled'
|
||||
| 'hasValidEntrepriseKey'
|
||||
| 'hasValidEnterpriseKey'
|
||||
| 'subdomain'
|
||||
| 'metadataVersion'
|
||||
>;
|
||||
|
||||
@ -157,7 +157,7 @@ export const queries = {
|
||||
isMicrosoftAuthEnabled
|
||||
isPasswordAuthEnabled
|
||||
subdomain
|
||||
hasValidEntrepriseKey
|
||||
hasValidEnterpriseKey
|
||||
featureFlags {
|
||||
id
|
||||
key
|
||||
@ -302,7 +302,7 @@ export const responseData = {
|
||||
allowImpersonation: false,
|
||||
activationStatus: 'active',
|
||||
isPublicInviteLinkEnabled: false,
|
||||
hasValidEntrepriseKey: false,
|
||||
hasValidEnterpriseKey: false,
|
||||
isGoogleAuthEnabled: true,
|
||||
isMicrosoftAuthEnabled: false,
|
||||
isPasswordAuthEnabled: true,
|
||||
|
||||
@ -21,7 +21,7 @@ const Wrapper = getJestMetadataAndApolloMocksWrapper({
|
||||
allowImpersonation: false,
|
||||
subdomain: 'test',
|
||||
activationStatus: WorkspaceActivationStatus.ACTIVE,
|
||||
hasValidEntrepriseKey: false,
|
||||
hasValidEnterpriseKey: false,
|
||||
metadataVersion: 1,
|
||||
isPublicInviteLinkEnabled: false,
|
||||
isGoogleAuthEnabled: true,
|
||||
|
||||
@ -38,7 +38,7 @@ export const SettingsSSOIdentitiesProvidersListCard = () => {
|
||||
|
||||
const { loading } = useListSsoIdentityProvidersByWorkspaceIdQuery({
|
||||
fetchPolicy: 'network-only',
|
||||
skip: currentWorkspace?.hasValidEntrepriseKey === false,
|
||||
skip: currentWorkspace?.hasValidEnterpriseKey === false,
|
||||
onCompleted: (data) => {
|
||||
setSSOIdentitiesProviders(
|
||||
data?.listSSOIdentityProvidersByWorkspaceId ?? [],
|
||||
@ -54,11 +54,11 @@ export const SettingsSSOIdentitiesProvidersListCard = () => {
|
||||
return loading || !SSOIdentitiesProviders.length ? (
|
||||
<StyledLink
|
||||
to={getSettingsPath(SettingsPath.NewSSOIdentityProvider)}
|
||||
isDisabled={currentWorkspace?.hasValidEntrepriseKey !== true}
|
||||
isDisabled={currentWorkspace?.hasValidEnterpriseKey !== true}
|
||||
>
|
||||
<SettingsCard
|
||||
title={t`Add SSO Identity Provider`}
|
||||
disabled={currentWorkspace?.hasValidEntrepriseKey !== true}
|
||||
disabled={currentWorkspace?.hasValidEnterpriseKey !== true}
|
||||
Icon={<IconKey />}
|
||||
/>
|
||||
</StyledLink>
|
||||
|
||||
@ -36,7 +36,7 @@ export const USER_QUERY_FRAGMENT = gql`
|
||||
isMicrosoftAuthEnabled
|
||||
isPasswordAuthEnabled
|
||||
subdomain
|
||||
hasValidEntrepriseKey
|
||||
hasValidEnterpriseKey
|
||||
featureFlags {
|
||||
id
|
||||
key
|
||||
|
||||
Reference in New Issue
Block a user