mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): disable clear intermediates button when queue has items
This commit is contained in:
parent
779c902402
commit
95cca9493c
@ -67,7 +67,7 @@ export default function SettingsClearIntermediates() {
|
|||||||
colorScheme="warning"
|
colorScheme="warning"
|
||||||
onClick={handleClickClearIntermediates}
|
onClick={handleClickClearIntermediates}
|
||||||
isLoading={isLoadingClearIntermediates}
|
isLoading={isLoadingClearIntermediates}
|
||||||
isDisabled={!intermediatesCount}
|
isDisabled={!intermediatesCount || hasPendingItems}
|
||||||
>
|
>
|
||||||
{t('settings.clearIntermediatesWithCount', {
|
{t('settings.clearIntermediatesWithCount', {
|
||||||
count: intermediatesCount ?? 0,
|
count: intermediatesCount ?? 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user