From 853fde45a7df628ef253c22ff88e6ff7458236a2 Mon Sep 17 00:00:00 2001 From: Salah Al Saleh Date: Thu, 11 Jul 2024 15:41:38 +0000 Subject: [PATCH] hide update actions in dashboard card --- .../components/DashboardVersionCard.tsx | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/web/src/features/Dashboard/components/DashboardVersionCard.tsx b/web/src/features/Dashboard/components/DashboardVersionCard.tsx index 8f9bb5437e..f80138613d 100644 --- a/web/src/features/Dashboard/components/DashboardVersionCard.tsx +++ b/web/src/features/Dashboard/components/DashboardVersionCard.tsx @@ -1443,51 +1443,51 @@ const DashboardVersionCard = (props: Props) => {

Version

-
- {selectedApp?.isAirgap && airgapUploader ? ( - props.airgapUploader?.assignElement(el)} - > -
- - - Upload new version - -
-
- ) : ( -
- {checkingForUpdates && !isBundleUploading ? ( -
- - - {checkingUpdateText === "" - ? "Checking for updates" - : checkingUpdateTextShort} - -
- ) : props.noUpdatesAvalable ? ( -
- - Already up to date - -
- ) : ( -
- - - Check for update + {!props.adminConsoleMetadata?.isEmbeddedCluster && ( +
+ {selectedApp?.isAirgap && airgapUploader ? ( + props.airgapUploader?.assignElement(el)} + > +
+ + + Upload new version
- )} - {!props.adminConsoleMetadata?.isEmbeddedCluster && ( +
+ ) : ( +
+ {checkingForUpdates && !isBundleUploading ? ( +
+ + + {checkingUpdateText === "" + ? "Checking for updates" + : checkingUpdateTextShort} + +
+ ) : props.noUpdatesAvalable ? ( +
+ + Already up to date + +
+ ) : ( +
+ + + Check for update + +
+ )}
{ Configure automatic updates
- )} -
- )} -
+
+ )} +
+ )}
{currentVersion?.deployedAt ? (