Skip to content

Commit c07e5a3

Browse files
authored
Merge pull request #112 from keithchong/8031-HideBadgeInOperandsTabs
Hide Dev Preview Badges in list pages under Operand tabs (#8031)
2 parents 2c3acb3 + 5e53b21 commit c07e5a3

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)