Skip to content

Commit

Permalink
bugfix(service overview): add service overview card image (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavanya-bmw authored Sep 11, 2023
1 parent a0740b7 commit de63f7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Enable credential reset
- Serview Overview
- Added Sub menu for active services in service overview
- Added image to service overview cards
- Sub Navigation Header
- Align label to the left
- Data Space
Expand Down
6 changes: 6 additions & 0 deletions src/features/apps/mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ export const serviceToCard = (app: ProvidedServiceType): CardItems => ({
statusText: app.status,
subtitle: app.provider,
title: app.name ?? '',
image: {
src: app.leadPictureId
? `${getApiBase()}/api/administration/documents/${app.leadPictureId}`
: LogoGrayData,
alt: app.name,
},
})

// mapper to create the app card used for the app access management view on the user management page
Expand Down
2 changes: 2 additions & 0 deletions src/features/serviceManagement/apiSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export interface ProvidedServiceType {
name: string
provider: string
status: ProvidedServiceStatusEnum
leadPictureId?: string
}

export interface ProvidedServices {
meta: {
totalElements: number
Expand Down

0 comments on commit de63f7e

Please sign in to comment.