From 0d9bdd1360573d6675414a74d5618d53db4acd0e Mon Sep 17 00:00:00 2001 From: Mihaela Balutoiu Date: Thu, 7 May 2026 21:26:41 +0300 Subject: [PATCH] Add loading state to Export VM Inventory button Signed-off-by: Mihaela Balutoiu --- .../EndpointDetailsContent.tsx | 15 +++++++---- .../EndpointDetailsPage.tsx | 3 +++ src/stores/EndpointStore.ts | 25 +++++++++++++------ 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/components/modules/EndpointModule/EndpointDetailsContent/EndpointDetailsContent.tsx b/src/components/modules/EndpointModule/EndpointDetailsContent/EndpointDetailsContent.tsx index fbb7d025..4d582817 100644 --- a/src/components/modules/EndpointModule/EndpointDetailsContent/EndpointDetailsContent.tsx +++ b/src/components/modules/EndpointModule/EndpointDetailsContent/EndpointDetailsContent.tsx @@ -23,6 +23,7 @@ import { Region } from "@src/@types/Region"; import EndpointLogos from "@src/components/modules/EndpointModule/EndpointLogos"; import { ThemePalette, ThemeProps } from "@src/components/Theme"; import Button from "@src/components/ui/Button"; +import LoadingButton from "@src/components/ui/LoadingButton"; import CopyMultilineValue from "@src/components/ui/CopyMultilineValue"; import CopyValue from "@src/components/ui/CopyValue"; import PasswordValue from "@src/components/ui/PasswordValue"; @@ -100,6 +101,7 @@ type Props = { transfers: TransferItem[]; connectionInfoSchema: FieldType[]; supportsInventoryExport?: boolean; + exportingInventoryCsv?: boolean; onDeleteClick: () => void; onValidateClick: () => void; onExportInventoryCsvClick?: () => void; @@ -199,11 +201,14 @@ class EndpointDetailsContent extends React.Component { Validate Endpoint - {this.props.supportsInventoryExport && ( - - )} + {this.props.supportsInventoryExport && + (this.props.exportingInventoryCsv ? ( + Export VM Inventory + ) : ( + + ))}