1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(edge/stack): edge stack env table pagination and action [EE-6836] (#11837)

This commit is contained in:
Oscar Zhou 2024-05-21 09:40:11 +12:00 committed by GitHub
parent 014a590704
commit 659abe553d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 9 deletions

View file

@ -35,7 +35,8 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
return (
<>
<Button
color="none"
className="p-0"
color="link"
title="Retrieve logs"
onClick={handleCollectLogs}
data-cy="edge-stack-logs-collect-button"
@ -48,11 +49,12 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
/>
</Button>
<Button
color="none"
data-cy="edge-stack-logs-download-button"
className="p-0"
color="link"
title="Download logs"
disabled={status !== 'collected'}
onClick={handleDownloadLogs}
data-cy="edge-stack-logs-download-button"
>
<Icon
icon={clsx({
@ -62,7 +64,8 @@ export function LogsActions({ environmentId, edgeStackId }: Props) {
/>
</Button>
<Button
color="none"
className="p-0"
color="link"
title="Delete logs"
disabled={status !== 'collected'}
onClick={handleDeleteLogs}