From d12b4241a0273e1a31915975eda709eb276a2304 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Wed, 31 Aug 2022 12:14:39 +0300 Subject: [PATCH] Add disabled prop to DownloadLogsDropdown Signed-off-by: Alex Andreev --- src/renderer/components/dock/logs/controls.tsx | 1 + src/renderer/components/dock/logs/download-logs-dropdown.tsx | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/renderer/components/dock/logs/controls.tsx b/src/renderer/components/dock/logs/controls.tsx index 6738ca56cf..8ae0a5f2fe 100644 --- a/src/renderer/components/dock/logs/controls.tsx +++ b/src/renderer/components/dock/logs/controls.tsx @@ -63,6 +63,7 @@ export const LogControls = observer(({ model }: LogControlsProps) => { /> diff --git a/src/renderer/components/dock/logs/download-logs-dropdown.tsx b/src/renderer/components/dock/logs/download-logs-dropdown.tsx index 1da7b9f8a6..d2082927fb 100644 --- a/src/renderer/components/dock/logs/download-logs-dropdown.tsx +++ b/src/renderer/components/dock/logs/download-logs-dropdown.tsx @@ -13,9 +13,10 @@ import { Dropdown } from "../../dropdown/dropdown"; interface DownloadLogsDropdownProps { downloadVisibleLogs: () => void; downloadAllLogs: () => Promise | undefined; + disabled?: boolean; } -export function DownloadLogsDropdown({ downloadAllLogs, downloadVisibleLogs }: DownloadLogsDropdownProps) { +export function DownloadLogsDropdown({ downloadAllLogs, downloadVisibleLogs, disabled }: DownloadLogsDropdownProps) { const [waiting, setWaiting] = useState(false); const downloadAll = async () => { @@ -35,7 +36,7 @@ export function DownloadLogsDropdown({ downloadAllLogs, downloadVisibleLogs }: D