Skip to content

Commit 67b2a39

Browse files
authored
Merge pull request #100 from keithchong/6655-ApplicationList-AddFavouritesAndBadge
Add Favourites and Badge to App List page (#6655)
2 parents 0734803 + 2dc3c3b commit 67b2a39

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/components/import/badges/Badge.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
&.pf-v6-c-label {
33
--pf-v6-c-label--BackgroundColor: #d93f00;
44
--pf-v6-c-label--Color: var(--pf-t--color--white);
5+
margin-top: 3px;
6+
padding-bottom: 7px;
57
}
68
}

src/gitops/components/shared/ApplicationList.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react';
22
import { useTranslation } from 'react-i18next';
33
import { useSearchParams } from 'react-router-dom-v5-compat';
4+
import DevPreviewBadge from 'src/components/import/badges/DevPreviewBadge';
45

56
import {
67
Action,
@@ -141,7 +142,11 @@ const ApplicationList: React.FC<ApplicationProps> = ({
141142
return (
142143
<div>
143144
{showTitle == undefined && (project == undefined || appset == undefined) && (
144-
<ListPageHeader title={t('plugin__gitops-plugin~Applications')}>
145+
<ListPageHeader
146+
title={t('plugin__gitops-plugin~Applications')}
147+
badge={<DevPreviewBadge />}
148+
hideFavoriteButton={false}
149+
>
145150
<ListPageCreate groupVersionKind={modelToRef(ApplicationModel)}>
146151
Create Application
147152
</ListPageCreate>

0 commit comments

Comments
 (0)