mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add support for submitting performer/scene drafts to stash-box (#2234)
* Add support for submitting performer/scene drafts to stash-box Co-authored-by: Kermie <kermie@isinthe.house>
This commit is contained in:
@@ -22,6 +22,7 @@ interface IProps {
|
||||
acceptSVG?: boolean;
|
||||
customButtons?: JSX.Element;
|
||||
classNames?: string;
|
||||
children?: JSX.Element | JSX.Element[];
|
||||
}
|
||||
|
||||
export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
@@ -90,16 +91,18 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
|
||||
if (props.onAutoTag) {
|
||||
return (
|
||||
<Button
|
||||
variant="secondary"
|
||||
onClick={() => {
|
||||
if (props.onAutoTag) {
|
||||
props.onAutoTag();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<FormattedMessage id="actions.auto_tag" />
|
||||
</Button>
|
||||
<div>
|
||||
<Button
|
||||
variant="secondary"
|
||||
onClick={() => {
|
||||
if (props.onAutoTag) {
|
||||
props.onAutoTag();
|
||||
}
|
||||
}}
|
||||
>
|
||||
<FormattedMessage id="actions.auto_tag" />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -143,30 +146,30 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
acceptSVG={props.acceptSVG ?? false}
|
||||
/>
|
||||
{props.isEditing && props.onClearImage ? (
|
||||
<Button
|
||||
className="mr-2"
|
||||
variant="danger"
|
||||
onClick={() => props.onClearImage!()}
|
||||
>
|
||||
{props.onClearBackImage
|
||||
? intl.formatMessage({ id: "actions.clear_front_image" })
|
||||
: intl.formatMessage({ id: "actions.clear_image" })}
|
||||
</Button>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<div>
|
||||
<Button
|
||||
className="mr-2"
|
||||
variant="danger"
|
||||
onClick={() => props.onClearImage!()}
|
||||
>
|
||||
{props.onClearBackImage
|
||||
? intl.formatMessage({ id: "actions.clear_front_image" })
|
||||
: intl.formatMessage({ id: "actions.clear_image" })}
|
||||
</Button>
|
||||
</div>
|
||||
) : null}
|
||||
{renderBackImageInput()}
|
||||
{props.isEditing && props.onClearBackImage ? (
|
||||
<Button
|
||||
className="mr-2"
|
||||
variant="danger"
|
||||
onClick={() => props.onClearBackImage!()}
|
||||
>
|
||||
{intl.formatMessage({ id: "actions.clear_back_image" })}
|
||||
</Button>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<div>
|
||||
<Button
|
||||
className="mr-2"
|
||||
variant="danger"
|
||||
onClick={() => props.onClearBackImage!()}
|
||||
>
|
||||
{intl.formatMessage({ id: "actions.clear_back_image" })}
|
||||
</Button>
|
||||
</div>
|
||||
) : null}
|
||||
{renderAutoTagButton()}
|
||||
{props.customButtons}
|
||||
{renderSaveButton()}
|
||||
|
||||
Reference in New Issue
Block a user