mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Upload Image from url (#1193)
This commit is contained in:
@@ -12,6 +12,8 @@ interface IProps {
|
||||
onAutoTag?: () => void;
|
||||
onImageChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
onBackImageChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
onImageChangeURL?: (url: string) => void;
|
||||
onBackImageChangeURL?: (url: string) => void;
|
||||
onClearImage?: () => void;
|
||||
onClearBackImage?: () => void;
|
||||
acceptSVG?: boolean;
|
||||
@@ -65,6 +67,7 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
isEditing={props.isEditing}
|
||||
text="Back image..."
|
||||
onImageChange={props.onBackImageChange}
|
||||
onImageURL={props.onBackImageChangeURL}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -116,6 +119,7 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
isEditing={props.isEditing}
|
||||
text={props.onBackImageChange ? "Front image..." : undefined}
|
||||
onImageChange={props.onImageChange}
|
||||
onImageURL={props.onImageChangeURL}
|
||||
acceptSVG={props.acceptSVG ?? false}
|
||||
/>
|
||||
{props.isEditing && props.onClearImage ? (
|
||||
|
||||
Reference in New Issue
Block a user