feat(ui): disable clear intermediates button when queue has items

This commit is contained in:
psychedelicious 2023-10-15 17:21:35 +11:00
parent 779c902402
commit 95cca9493c

View File

@ -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,