From 61ef133bb82117776192596916cf22e83de7600d Mon Sep 17 00:00:00 2001
From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com>
Date: Tue, 21 May 2024 09:40:03 +1200
Subject: [PATCH] fix(edge/stack): edge stack env table pagination and action
[EE-6836] (#11836)
---
.../EnvironmentsDatatable/EnvironmentActions.tsx | 6 +++---
.../EnvironmentsDatatable/EnvironmentsDatatable.tsx | 9 +++++++--
.../ItemView/EnvironmentsDatatable/LogsActions.tsx | 13 ++++++++++---
3 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/EnvironmentActions.tsx b/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/EnvironmentActions.tsx
index d34452ad1..56ebea423 100644
--- a/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/EnvironmentActions.tsx
+++ b/app/react/edge/edge-stacks/ItemView/EnvironmentsDatatable/EnvironmentActions.tsx
@@ -19,12 +19,12 @@ export function EnvironmentActions({ environment }: Props) {
} = useCurrentStateAndParams();
return (
-
- {environment.Snapshots.length > 0 && (
+
+ {environment.Snapshots.length > 0 && environment.Edge.AsyncMode && (