Skip to content

Commit

Permalink
fix(ui): show send to toggle on canvas only
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Sep 12, 2024
1 parent 12cab9f commit 1a59887
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { Flex, Spacer } from '@invoke-ai/ui-library';
import { useAppSelector } from 'app/store/storeHooks';
import { ClearQueueIconButton } from 'features/queue/components/ClearQueueIconButton';
import QueueFrontButton from 'features/queue/components/QueueFrontButton';
import { SendToToggle } from 'features/queue/components/SendToToggle';
import ProgressBar from 'features/system/components/ProgressBar';
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus';
import { selectActiveTab } from 'features/ui/store/uiSelectors';
import { memo } from 'react';

import { InvokeQueueBackButton } from './InvokeQueueBackButton';

const QueueControls = () => {
const isPrependEnabled = useFeatureStatus('prependQueue');
const tab = useAppSelector(selectActiveTab);

return (
<Flex w="full" position="relative" borderRadius="base" gap={2} flexDir="column">
<Flex gap={2}>
{isPrependEnabled && <QueueFrontButton />}
<InvokeQueueBackButton />
<Spacer />
<SendToToggle />
{tab === 'generation' && <SendToToggle />}
<ClearQueueIconButton />
</Flex>
<ProgressBar />
Expand Down

0 comments on commit 1a59887

Please sign in to comment.