@@ -35,7 +35,7 @@ import { APIError } from '../../../lib/api/error.ts';
3535import { useTranslation } from 'react-i18next' ;
3636import { IllustratedBanner } from '../../Ui/IllustratedBanner/IllustratedBanner.tsx' ;
3737import { useFrontendConfig } from '../../../context/FrontendConfigContext.tsx' ;
38- import { IllustrationName } from '../../Shared/IllustratedName.ts ' ;
38+ import IllustrationMessageType from '@ui5/webcomponents-fiori/dist/types/IllustrationMessageType.js ' ;
3939
4040interface Props {
4141 projectName : string ;
@@ -75,7 +75,7 @@ export function ControlPlaneListWorkspaceGridTile({
7575 title = { t (
7676 'ControlPlaneListWorkspaceGridTile.permissionErrorMessage' ,
7777 ) }
78- subtitleText = { t (
78+ details = { t (
7979 'ControlPlaneListWorkspaceGridTile.permissionErrorMessageSubtitle' ,
8080 ) }
8181 />
@@ -140,26 +140,26 @@ export function ControlPlaneListWorkspaceGridTile({
140140 >
141141 { errorView ? (
142142 errorView
143+ ) : controlplanes ?. length === 0 ? (
144+ < IllustratedBanner
145+ title = { t ( 'IllustratedBanner.titleMessage' ) }
146+ subtitle = { t ( 'IllustratedBanner.subtitleMessage' ) }
147+ illustrationName = { IllustrationMessageType . NoData }
148+ help = { {
149+ link : links . COM_PAGE_GETTING_STARTED_MCP ,
150+ buttonText : t ( 'IllustratedBanner.helpButton' ) ,
151+ } }
152+ />
143153 ) : (
144154 < Grid defaultSpan = "XL4 L4 M7 S12" >
145- { controlplanes ?. length === 0 ? (
146- < IllustratedBanner
147- title = { t ( 'NoManagedControlPlaneBanner.titleMessage' ) }
148- subtitle = { t ( 'NoManagedControlPlaneBanner.subtitleMessage' ) }
149- helpButtonText = { t ( 'NoManagedControlPlaneBanner.helpButton' ) }
150- illustrationName = { IllustrationName . NoData }
151- helpLink = { links . COM_PAGE_GETTING_STARTED_MCP }
155+ { controlplanes ?. map ( ( cp ) => (
156+ < ControlPlaneCard
157+ key = { `${ cp . metadata . name } --${ cp . metadata . namespace } ` }
158+ controlPlane = { cp }
159+ projectName = { projectName }
160+ workspace = { workspace }
152161 />
153- ) : (
154- controlplanes ?. map ( ( cp ) => (
155- < ControlPlaneCard
156- key = { `${ cp . metadata . name } --${ cp . metadata . namespace } ` }
157- controlPlane = { cp }
158- projectName = { projectName }
159- workspace = { workspace }
160- />
161- ) )
162- ) }
162+ ) ) }
163163 </ Grid >
164164 ) }
165165 </ Panel >
0 commit comments