fix(ui): disable drop when controlnet disabled

This commit is contained in:
psychedelicious
2023-07-15 20:47:02 +10:00
parent 8e0ba24bf2
commit b265956083
2 changed files with 10 additions and 7 deletions

View File

@ -133,7 +133,7 @@ const ControlNetImagePreview = (props: Props) => {
draggableData={draggableData}
droppableData={droppableData}
imageDTO={controlImage}
isDropDisabled={shouldShowProcessedImage}
isDropDisabled={shouldShowProcessedImage || !isEnabled}
onClickReset={handleResetControlImage}
postUploadAction={postUploadAction}
resetTooltip="Reset Control Image"
@ -157,6 +157,7 @@ const ControlNetImagePreview = (props: Props) => {
droppableData={droppableData}
imageDTO={processedControlImage}
isUploadDisabled={true}
isDropDisabled={!isEnabled}
onClickReset={handleResetControlImage}
resetTooltip="Reset Control Image"
withResetIcon={Boolean(controlImage)}