From 848ca79da80ddc46861d391c32907c35c4822e40 Mon Sep 17 00:00:00 2001 From: jstnlowe Date: Tue, 4 Jun 2024 21:13:09 -0400 Subject: [PATCH] Changed translated labels to static suffixes, cleanup. --- .../components/ImageMetadataViewer/DataViewer.tsx | 2 +- .../ImageMetadataGraphTabContent.tsx | 4 +++- .../ImageMetadataViewer/ImageMetadataViewer.tsx | 12 ++++++++++-- .../ImageMetadataWorkflowTabContent.tsx | 8 +++++++- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/DataViewer.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/DataViewer.tsx index 24808efa49..2cbf93b899 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/DataViewer.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/DataViewer.tsx @@ -33,7 +33,7 @@ const DataViewer = (props: Props) => { const blob = new Blob([dataString]); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); - a.download = `${ fileName || label }.json`; + a.download = `${fileName || label}.json`; document.body.appendChild(a); a.click(); a.remove(); diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataGraphTabContent.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataGraphTabContent.tsx index d9353edbef..b5b81d1e6f 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataGraphTabContent.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataGraphTabContent.tsx @@ -28,7 +28,9 @@ const ImageMetadataGraphTabContent = ({ image }: Props) => { return ; } - return ; + return ( + + ); }; export default memo(ImageMetadataGraphTabContent); diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataViewer.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataViewer.tsx index a2a36357f3..aa50498848 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataViewer.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataViewer.tsx @@ -68,14 +68,22 @@ const ImageMetadataViewer = ({ image }: ImageMetadataViewerProps) => { {metadata ? ( - + ) : ( )} {image ? ( - + ) : ( )} diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataWorkflowTabContent.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataWorkflowTabContent.tsx index e549d95f29..9c224d6190 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataWorkflowTabContent.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageMetadataViewer/ImageMetadataWorkflowTabContent.tsx @@ -28,7 +28,13 @@ const ImageMetadataWorkflowTabContent = ({ image }: Props) => { return ; } - return ; + return ( + + ); }; export default memo(ImageMetadataWorkflowTabContent);