Skip to content

Commit

Permalink
Make subscriptions & catalog sources optional so normal users can see…
Browse files Browse the repository at this point in the history
… installed operators
  • Loading branch information
benjaminapetersen committed Jan 13, 2020
1 parent 54dd29d commit e8ba340
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,14 @@ const ClusterServiceVersionStatus: React.FC<ClusterServiceVersionStatusProps> =
return <>Disabling</>;
}

if (_.isEmpty(catalogSource)) {
return (
<>
<WarningStatus title="Cannot update" />
<span className="text-muted">Catalog source was removed</span>
</>
);
}
// if (_.isEmpty(catalogSource)) {
// return (
// <>
// <WarningStatus title="Cannot update" />
// <span className="text-muted">Catalog source was removed</span>
// </>
// );
// }

return (
<>
Expand Down Expand Up @@ -531,10 +531,12 @@ export const ClusterServiceVersionsPage: React.FC<ClusterServiceVersionsPageProp
{
kind: referenceForModel(SubscriptionModel),
prop: 'subscriptions',
optional: true,
},
{
kind: referenceForModel(CatalogSourceModel),
prop: 'catalogSources',
optional: true,
},
]}
flatten={flatten}
Expand Down

0 comments on commit e8ba340

Please sign in to comment.