Skip to content

Commit 5e53b21

Browse files
committed
Hide Dev Preview Badges in list pages under Operand tabs (#8031)
Signed-off-by: Keith Chong <kykchong@redhat.com>
1 parent 2c3acb3 commit 5e53b21

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/gitops/components/shared/ApplicationList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ const ApplicationList: React.FC<ApplicationProps> = ({
196196
{showTitle == undefined && (project == undefined || appset == undefined) && (
197197
<ListPageHeader
198198
title={t('plugin__gitops-plugin~Applications')}
199-
badge={<DevPreviewBadge />}
199+
badge={
200+
location.pathname?.includes('openshift-gitops-operator') ? null : <DevPreviewBadge />
201+
}
200202
hideFavoriteButton={false}
201203
>
202204
<ListPageCreate groupVersionKind={modelToRef(ApplicationModel)}>

src/gitops/components/shared/ApplicationSetList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ const ApplicationSetList: React.FC<ApplicationSetProps> = ({
259259
{showTitle == undefined && (
260260
<ListPageHeader
261261
title={t('plugin__gitops-plugin~ApplicationSets')}
262-
badge={<DevPreviewBadge />}
262+
badge={
263+
location.pathname?.includes('openshift-gitops-operator') ? null : <DevPreviewBadge />
264+
}
263265
hideFavoriteButton={false}
264266
>
265267
<ListPageCreate groupVersionKind={modelToRef(ApplicationSetModel)}>

0 commit comments

Comments
 (0)