fix(content-releases): remove Refresh button from the details page (#19067)

* remove the refresh button from the Details page because the logic is not implemented yet

* remove comments
This commit is contained in:
Simone 2023-12-22 11:07:18 +01:00 committed by GitHub
parent 515a292046
commit e6a1663ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View File

@ -273,12 +273,6 @@ export const ReleaseDetailsLayout = ({
</ReleaseInfoWrapper> </ReleaseInfoWrapper>
</Popover> </Popover>
)} )}
<Button size="S" variant="tertiary">
{formatMessage({
id: 'content-releases.header.actions.refresh',
defaultMessage: 'Refresh',
})}
</Button>
<CheckPermissions permissions={PERMISSIONS.publish}> <CheckPermissions permissions={PERMISSIONS.publish}>
<Button <Button
size="S" size="S"
@ -297,7 +291,6 @@ export const ReleaseDetailsLayout = ({
) )
} }
/> />
{children} {children}
</Main> </Main>
); );

View File

@ -40,9 +40,6 @@ describe('Releases details page', () => {
const moreButton = screen.getByRole('button', { name: 'Release actions' }); const moreButton = screen.getByRole('button', { name: 'Release actions' });
expect(moreButton).toBeInTheDocument(); expect(moreButton).toBeInTheDocument();
const refreshButton = screen.getByRole('button', { name: 'Refresh' });
expect(refreshButton).toBeInTheDocument();
const publishButton = screen.getByRole('button', { name: 'Publish' }); const publishButton = screen.getByRole('button', { name: 'Publish' });
expect(publishButton).toBeInTheDocument(); expect(publishButton).toBeInTheDocument();
expect(publishButton).toBeDisabled(); expect(publishButton).toBeDisabled();