mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Fix auto tag from object not honouring the ignore autotag flag (#4610)
* Fix auto tag from object ignoring the ignore autotag field * Disable auto tag buttons where ignore auto tag is enabled
This commit is contained in:
@@ -13,6 +13,7 @@ interface IProps {
|
||||
saveDisabled?: boolean;
|
||||
onDelete: () => void;
|
||||
onAutoTag?: () => void;
|
||||
autoTagDisabled?: boolean;
|
||||
onImageChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
onBackImageChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
onImageChangeURL?: (url: string) => void;
|
||||
@@ -94,6 +95,7 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
<div>
|
||||
<Button
|
||||
variant="secondary"
|
||||
disabled={props.autoTagDisabled}
|
||||
onClick={() => {
|
||||
if (props.onAutoTag) {
|
||||
props.onAutoTag();
|
||||
|
||||
Reference in New Issue
Block a user