mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
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:
parent
515a292046
commit
e6a1663ead
@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user