Skip to content

Commit

Permalink
feat(ospm): update changelog and fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw committed Sep 23, 2024
1 parent 7420a92 commit 07454b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Change

- **Onboarding Service Provider Management**
- Added search to ospm table[#1132](https://github.com/eclipse-tractusx/portal-frontend/pull/1132)

## 2.2.0-alpha.1

### Bugfixes
Expand Down
8 changes: 4 additions & 4 deletions src/components/pages/IDPManagement/IDPList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const IDPList = ({ isManagementOSP }: { isManagementOSP?: boolean }) => {
const [idpsManagedData, setIdpsManagedData] = useState(
idpsData?.filter((a) => a.identityProviderTypeId === IDPCategory.MANAGED)
)
const [expr, setExpr] = useState<string>('')
const [searchExpr, setSearchExpr] = useState<string>('')
const [removeIDP] = useRemoveIDPMutation()
const [enableIDP] = useEnableIDPMutation()

Expand Down Expand Up @@ -366,7 +366,7 @@ export const IDPList = ({ isManagementOSP }: { isManagementOSP?: boolean }) => {
(i) => i.alias === value || i.displayName === value
)
setIdpsManagedData(searchFilter)
setExpr(expr)
setSearchExpr(searchExpr)
} else setIdpsManagedData(idpManagedData)
}

Expand Down Expand Up @@ -446,12 +446,12 @@ export const IDPList = ({ isManagementOSP }: { isManagementOSP?: boolean }) => {
getRowId={(row: { [key: string]: string }) => row.identityProviderId}
hasBorder={false}
searchPlaceholder={isManagementOSP ? 'search' : undefined}
searchExpr={isManagementOSP ? expr : undefined}
searchExpr={isManagementOSP ? searchExpr : undefined}
onSearch={
isManagementOSP
? (expr: string) => {
isManagementOSP && onSearch(expr)
setExpr(expr)
setSearchExpr(expr)
}
: undefined
}
Expand Down
2 changes: 2 additions & 0 deletions src/types/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ export const userMenuRegistration = [PAGES.LOGOUT]

export const userMenuCompany = [
PAGES.ORGANIZATION,
PAGES.COMPANY_SUBSCRIPTIONS,
PAGES.USER_MANAGEMENT,
PAGES.IDP_MANAGEMENT,
PAGES.CONNECTOR_MANAGEMENT,
Expand All @@ -857,6 +858,7 @@ export const userMenuCompany = [
PAGES.COMPANY_CERTIFICATE,
PAGES.COMPANY_WALLET,
PAGES.COMPANY_DATA,
PAGES.MANAGEMENT_ONBOARDING_SERVICE_PROVIDER,
]

/**
Expand Down

0 comments on commit 07454b9

Please sign in to comment.