@@ -36,7 +36,7 @@ import { useTranslation } from 'react-i18next';
3636import { YamlViewButton } from '../../Yaml/YamlViewButton.tsx' ;
3737import { IllustratedBanner } from '../../Ui/IllustratedBanner/IllustratedBanner.tsx' ;
3838import { useFrontendConfig } from '../../../context/FrontendConfigContext.tsx' ;
39- import { IllustrationName } from '../../Shared/IllustratedName.ts ' ;
39+ import IllustrationMessageType from '@ui5/webcomponents-fiori/dist/types/IllustrationMessageType.js ' ;
4040
4141interface Props {
4242 projectName : string ;
@@ -76,7 +76,7 @@ export function ControlPlaneListWorkspaceGridTile({
7676 title = { t (
7777 'ControlPlaneListWorkspaceGridTile.permissionErrorMessage' ,
7878 ) }
79- subtitleText = { t (
79+ details = { t (
8080 'ControlPlaneListWorkspaceGridTile.permissionErrorMessageSubtitle' ,
8181 ) }
8282 />
@@ -149,26 +149,26 @@ export function ControlPlaneListWorkspaceGridTile({
149149 >
150150 { errorView ? (
151151 errorView
152+ ) : controlplanes ?. length === 0 ? (
153+ < IllustratedBanner
154+ title = { t ( 'IllustratedBanner.titleMessage' ) }
155+ subtitle = { t ( 'IllustratedBanner.subtitleMessage' ) }
156+ illustrationName = { IllustrationMessageType . NoData }
157+ help = { {
158+ link : links . COM_PAGE_GETTING_STARTED_MCP ,
159+ buttonText : t ( 'IllustratedBanner.helpButton' ) ,
160+ } }
161+ />
152162 ) : (
153163 < Grid defaultSpan = "XL4 L4 M7 S12" >
154- { controlplanes ?. length === 0 ? (
155- < IllustratedBanner
156- title = { t ( 'NoManagedControlPlaneBanner.titleMessage' ) }
157- subtitle = { t ( 'NoManagedControlPlaneBanner.subtitleMessage' ) }
158- helpButtonText = { t ( 'NoManagedControlPlaneBanner.helpButton' ) }
159- illustrationName = { IllustrationName . NoData }
160- helpLink = { links . COM_PAGE_GETTING_STARTED_MCP }
164+ { controlplanes ?. map ( ( cp ) => (
165+ < ControlPlaneCard
166+ key = { `${ cp . metadata . name } --${ cp . metadata . namespace } ` }
167+ controlPlane = { cp }
168+ projectName = { projectName }
169+ workspace = { workspace }
161170 />
162- ) : (
163- controlplanes ?. map ( ( cp ) => (
164- < ControlPlaneCard
165- key = { `${ cp . metadata . name } --${ cp . metadata . namespace } ` }
166- controlPlane = { cp }
167- projectName = { projectName }
168- workspace = { workspace }
169- />
170- ) )
171- ) }
171+ ) ) }
172172 </ Grid >
173173 ) }
174174 </ Panel >
0 commit comments