Skip to content

Commit

Permalink
other: fixes 🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
olemp committed Mar 22, 2024
1 parent c8eaf57 commit 2e54161
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export function useSubscriptionConfig() {
{
id: 'domainRestrictionEnabled',
type: 'bool',
disabledIf: (settings: SubscriptionSettings) => !_.get(settings, 'security.securityGroupEnabled'),
disabledIf: (settings: SubscriptionSettings) =>
!_.get(settings, 'security.securityGroupEnabled'),
props: {
label: t('admin.domainRestrictionEnabledLabel'),
description: t('admin.domainRestrictionEnabledDescription')
Expand All @@ -105,8 +106,10 @@ export function useSubscriptionConfig() {
{
id: 'domainRestriction',
type: 'text',
disabledIf: (settings: SubscriptionSettings) => !_.get(settings, 'security.securityGroupEnabled'),
hiddenIf: (settings: SubscriptionSettings) => !_.get(settings, 'security.domainRestrictionEnabled'),
disabledIf: (settings: SubscriptionSettings) =>
!_.get(settings, 'security.securityGroupEnabled'),
hiddenIf: (settings: SubscriptionSettings) =>
!_.get(settings, 'security.domainRestrictionEnabled'),
props: {
label: t('admin.domainRestrictionLabel'),
description: t('admin.domainRestrictionDescription'),
Expand Down
3 changes: 2 additions & 1 deletion client/pages/Projects/ProjectList/ProjectList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next'
import { useProjectsContext } from '../context'
import { IProjectListProps } from './types'
import { useProjectList } from './useProjectList'
import { ListMenuItem } from 'components/List/ListToolbar'

/**
* Project list component used by `<Projects />`. Renders
Expand Down Expand Up @@ -32,7 +33,7 @@ export const ProjectList: TabComponent<IProjectListProps> = (props) => {
t('projects.toggleInactive', { count: inactiveProjects.length }),
showInactive.toggle
),
...props.menuItems
...(props.menuItems as ListMenuItem[])
]}
/>
{props.children}
Expand Down

0 comments on commit 2e54161

Please sign in to comment.