From c33f0ae055e0e0b63047f081f728fb0beafe0559 Mon Sep 17 00:00:00 2001
From: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
Date: Tue, 4 Jul 2023 00:22:18 +1000
Subject: [PATCH] feat(ui): hide batch ui pending logic implementation
---
.../features/gallery/components/ImageContextMenu.tsx | 8 ++++----
.../Parameters/ImageToImage/InitialImageDisplay.tsx | 7 ++++---
.../web/src/features/ui/components/InvokeTabs.tsx | 10 +++++-----
3 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu.tsx
index 48eff4c1b4..1e5f95ab0d 100644
--- a/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu.tsx
+++ b/invokeai/frontend/web/src/features/gallery/components/ImageContextMenu.tsx
@@ -217,13 +217,13 @@ const ImageContextMenu = ({ image, children }: Props) => {
{t('parameters.sendToUnifiedCanvas')}
)}
- }
isDisabled={isInBatch}
onClickCapture={handleAddToBatch}
>
Add to Batch
-
+ */}
} onClickCapture={handleAddToBoard}>
{image.board_id ? 'Change Board' : 'Add to Board'}
@@ -252,12 +252,12 @@ const ImageContextMenu = ({ image, children }: Props) => {
>
Move Selection to Board
- }
onClickCapture={handleAddSelectionToBatch}
>
Add Selection to Batch
-
+ */}
}
diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/ImageToImage/InitialImageDisplay.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/ImageToImage/InitialImageDisplay.tsx
index 235628ef7d..c08f714488 100644
--- a/invokeai/frontend/web/src/features/parameters/components/Parameters/ImageToImage/InitialImageDisplay.tsx
+++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/ImageToImage/InitialImageDisplay.tsx
@@ -114,7 +114,7 @@ const InitialImageDisplay = () => {
Initial Image
- }
@@ -122,7 +122,7 @@ const InitialImageDisplay = () => {
onClick={handleClickUseBatch}
>
{useBatchAsInitialImage ? 'Batch' : 'Single'}
-
+ */}
{
isDisabled={isResetButtonDisabled}
/>
- {useBatchAsInitialImage ? : }
+
+ {/* {useBatchAsInitialImage ? : } */}
);
diff --git a/invokeai/frontend/web/src/features/ui/components/InvokeTabs.tsx b/invokeai/frontend/web/src/features/ui/components/InvokeTabs.tsx
index 3cc90013f7..1b2ae81072 100644
--- a/invokeai/frontend/web/src/features/ui/components/InvokeTabs.tsx
+++ b/invokeai/frontend/web/src/features/ui/components/InvokeTabs.tsx
@@ -66,11 +66,11 @@ const tabs: InvokeTabInfo[] = [
icon: ,
content: ,
},
- {
- id: 'batch',
- icon: ,
- content: ,
- },
+ // {
+ // id: 'batch',
+ // icon: ,
+ // content: ,
+ // },
];
const enabledTabsSelector = createSelector(