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:
WithoutPants
2024-02-23 14:34:04 +11:00
committed by GitHub
parent 4b84ec0d85
commit 4a3ce8b6ec
5 changed files with 20 additions and 0 deletions

View File

@@ -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();