mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): disable queue-related buttons when disconnected
This commit is contained in:
committed by
Kent Keirsey
parent
8954953eca
commit
2b08d9e53b
@@ -10,14 +10,14 @@ type Props = {
|
||||
|
||||
const PauseProcessorButton = ({ asIconButton }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const { pauseProcessor, isLoading, isStarted } = usePauseProcessor();
|
||||
const { pauseProcessor, isLoading, isDisabled } = usePauseProcessor();
|
||||
|
||||
return (
|
||||
<QueueButton
|
||||
asIconButton={asIconButton}
|
||||
label={t('queue.pause')}
|
||||
tooltip={t('queue.pauseTooltip')}
|
||||
isDisabled={!isStarted}
|
||||
isDisabled={isDisabled}
|
||||
isLoading={isLoading}
|
||||
icon={<FaPause />}
|
||||
onClick={pauseProcessor}
|
||||
|
||||
Reference in New Issue
Block a user