mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
render created_by in UI if its present
This commit is contained in:
parent
e6fd1c3d1f
commit
466a819f06
@ -1,4 +1,4 @@
|
|||||||
import { MenuItem } from '@chakra-ui/react';
|
import { Flex, MenuItem, Text } from '@chakra-ui/react';
|
||||||
import { skipToken } from '@reduxjs/toolkit/dist/query';
|
import { skipToken } from '@reduxjs/toolkit/dist/query';
|
||||||
import { useAppToaster } from 'app/components/Toaster';
|
import { useAppToaster } from 'app/components/Toaster';
|
||||||
import { useAppDispatch } from 'app/store/storeHooks';
|
import { useAppDispatch } from 'app/store/storeHooks';
|
||||||
@ -228,6 +228,18 @@ const SingleSelectionMenuItems = (props: SingleSelectionMenuItemsProps) => {
|
|||||||
>
|
>
|
||||||
{t('gallery.deleteImage')}
|
{t('gallery.deleteImage')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
{metadata?.created_by && (
|
||||||
|
<Flex
|
||||||
|
padding="5px 10px"
|
||||||
|
// backgroundColor="gray.600"
|
||||||
|
// marginBottom="-5px"
|
||||||
|
marginTop="5px"
|
||||||
|
>
|
||||||
|
<Text fontSize="xs" fontWeight="bold">
|
||||||
|
Created by {metadata?.created_by}
|
||||||
|
</Text>
|
||||||
|
</Flex>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -69,6 +69,9 @@ const ImageMetadataActions = (props: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{metadata.created_by && (
|
||||||
|
<ImageMetadataItem label="Created By" value={metadata.created_by} />
|
||||||
|
)}
|
||||||
{metadata.generation_mode && (
|
{metadata.generation_mode && (
|
||||||
<ImageMetadataItem
|
<ImageMetadataItem
|
||||||
label="Generation Mode"
|
label="Generation Mode"
|
||||||
|
@ -1453,6 +1453,11 @@ export type components = {
|
|||||||
* @description The generation mode that output this image
|
* @description The generation mode that output this image
|
||||||
*/
|
*/
|
||||||
generation_mode: string;
|
generation_mode: string;
|
||||||
|
/**
|
||||||
|
* Created By
|
||||||
|
* @description The name of the creator of the image
|
||||||
|
*/
|
||||||
|
created_by?: string;
|
||||||
/**
|
/**
|
||||||
* Positive Prompt
|
* Positive Prompt
|
||||||
* @description The positive prompt parameter
|
* @description The positive prompt parameter
|
||||||
@ -6319,18 +6324,18 @@ export type components = {
|
|||||||
* @enum {string}
|
* @enum {string}
|
||||||
*/
|
*/
|
||||||
ControlNetModelFormat: "checkpoint" | "diffusers";
|
ControlNetModelFormat: "checkpoint" | "diffusers";
|
||||||
/**
|
|
||||||
* StableDiffusionOnnxModelFormat
|
|
||||||
* @description An enumeration.
|
|
||||||
* @enum {string}
|
|
||||||
*/
|
|
||||||
StableDiffusionOnnxModelFormat: "olive" | "onnx";
|
|
||||||
/**
|
/**
|
||||||
* StableDiffusion1ModelFormat
|
* StableDiffusion1ModelFormat
|
||||||
* @description An enumeration.
|
* @description An enumeration.
|
||||||
* @enum {string}
|
* @enum {string}
|
||||||
*/
|
*/
|
||||||
StableDiffusion1ModelFormat: "checkpoint" | "diffusers";
|
StableDiffusion1ModelFormat: "checkpoint" | "diffusers";
|
||||||
|
/**
|
||||||
|
* StableDiffusionOnnxModelFormat
|
||||||
|
* @description An enumeration.
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
|
StableDiffusionOnnxModelFormat: "olive" | "onnx";
|
||||||
/**
|
/**
|
||||||
* StableDiffusionXLModelFormat
|
* StableDiffusionXLModelFormat
|
||||||
* @description An enumeration.
|
* @description An enumeration.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user