Skip to content

Commit

Permalink
feat(technical user management): remove inactive filter (#1046)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Aug 28, 2024
1 parent 49f1934 commit 6192911
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
- Customer Detail Data Overlay
- implement new UI design for customer detail data overlay

### Change

- **Technical User Management**
- Removed 'Inactive' filter in technical user management [#1046](https://github.com/eclipse-tractusx/portal-frontend/pull/1046)

## 2.2.0-RC1

### Change
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ export const TechnicalUserTable = () => {
buttonValue: ServiceAccountStatusFilter.ACTIVE,
onButtonClick: setView,
},
{
buttonText: t('content.usermanagement.technicalUser.tabs.inactive'),
buttonValue: ServiceAccountStatusFilter.INACTIVE,
onButtonClick: setView,
},
{
buttonText: t('content.usermanagement.technicalUser.tabs.managed'),
buttonValue: ServiceAccountStatusFilter.MANAGED,
Expand Down
7 changes: 0 additions & 7 deletions src/features/admin/serviceApiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export interface ServiceAccountsResponseType {

export enum ServiceAccountStatusFilter {
ACTIVE = 'ACTIVE',
INACTIVE = 'INACTIVE',
MANAGED = 'MANAGED',
OWNED = 'OWNED',
}
Expand Down Expand Up @@ -152,12 +151,6 @@ export const apiSlice = createApi({
fetchArgs.args.statusFilter === ServiceAccountStatusFilter.ACTIVE
) {
return `${url}&clientId=${fetchArgs.args!.expr}`
} else if (
!isFetchArgs &&
fetchArgs.args.statusFilter &&
fetchArgs.args.statusFilter === ServiceAccountStatusFilter.INACTIVE
) {
return `${url}&filterForInactive=true`
} else if (
!isFetchArgs &&
fetchArgs.args.statusFilter &&
Expand Down

0 comments on commit 6192911

Please sign in to comment.