Skip to content

Commit

Permalink
regression: marketplace header fixes (#33626)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler authored Oct 17, 2024
1 parent d8f9c35 commit 390901e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const MarketplaceHeader = ({ title, unsupportedVersion }: { title: string; unsup
<PageHeader title={title}>
{result.isLoading && <GenericResourceUsageSkeleton mi={16} />}

{result.isSuccess && !result.data.hasUnlimitedApps && (
{!unsupportedVersion && result.isSuccess && !result.data.hasUnlimitedApps && (
<Margins inline={16}>
<EnabledAppsCount
{...result.data}
Expand All @@ -56,10 +56,6 @@ const MarketplaceHeader = ({ title, unsupportedVersion }: { title: string; unsup
)}

<ButtonGroup wrap align='end'>
{!unsupportedVersion && result.isSuccess && !result.data.hasUnlimitedApps && (
<EnabledAppsCount {...result.data} context={context} />
)}

{!unsupportedVersion && isAdmin && result.isSuccess && !result.data.hasUnlimitedApps && context !== 'private' && (
<Button
onClick={() => {
Expand All @@ -71,7 +67,7 @@ const MarketplaceHeader = ({ title, unsupportedVersion }: { title: string; unsup
)}

{isAdmin && context === 'private' && <Button onClick={handleClickPrivate}>{t('Upload_private_app')}</Button>}
{isAdmin && result.isSuccess && !privateAppsEnabled && context === 'private' && <UpdateRocketChatButton />}
{unsupportedVersion && isAdmin && context !== 'private' && <UpdateRocketChatButton />}
</ButtonGroup>
</PageHeader>
);
Expand Down

0 comments on commit 390901e

Please sign in to comment.