From 95cca9493c4beab58b39a10b0c42bc0efda19e3b Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sun, 15 Oct 2023 17:21:35 +1100 Subject: [PATCH] feat(ui): disable clear intermediates button when queue has items --- .../components/SettingsModal/SettingsClearIntermediates.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsClearIntermediates.tsx b/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsClearIntermediates.tsx index c2a67cba26..648a4b5162 100644 --- a/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsClearIntermediates.tsx +++ b/invokeai/frontend/web/src/features/system/components/SettingsModal/SettingsClearIntermediates.tsx @@ -67,7 +67,7 @@ export default function SettingsClearIntermediates() { colorScheme="warning" onClick={handleClickClearIntermediates} isLoading={isLoadingClearIntermediates} - isDisabled={!intermediatesCount} + isDisabled={!intermediatesCount || hasPendingItems} > {t('settings.clearIntermediatesWithCount', { count: intermediatesCount ?? 0,