File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
invokeai/frontend/web/src/features/queue/components Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { Flex , Spacer } from '@invoke-ai/ui-library' ;
2
+ import { useAppSelector } from 'app/store/storeHooks' ;
2
3
import { ClearQueueIconButton } from 'features/queue/components/ClearQueueIconButton' ;
3
4
import QueueFrontButton from 'features/queue/components/QueueFrontButton' ;
4
5
import { SendToToggle } from 'features/queue/components/SendToToggle' ;
5
6
import ProgressBar from 'features/system/components/ProgressBar' ;
6
7
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus' ;
8
+ import { selectActiveTab } from 'features/ui/store/uiSelectors' ;
7
9
import { memo } from 'react' ;
8
10
9
11
import { InvokeQueueBackButton } from './InvokeQueueBackButton' ;
10
12
11
13
const QueueControls = ( ) => {
12
14
const isPrependEnabled = useFeatureStatus ( 'prependQueue' ) ;
15
+ const tab = useAppSelector ( selectActiveTab ) ;
13
16
14
17
return (
15
18
< Flex w = "full" position = "relative" borderRadius = "base" gap = { 2 } flexDir = "column" >
16
19
< Flex gap = { 2 } >
17
20
{ isPrependEnabled && < QueueFrontButton /> }
18
21
< InvokeQueueBackButton />
19
22
< Spacer />
20
- < SendToToggle />
23
+ { tab === 'generation' && < SendToToggle /> }
21
24
< ClearQueueIconButton />
22
25
</ Flex >
23
26
< ProgressBar />
You can’t perform that action at this time.
0 commit comments