mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Use formik for scene edit (#1429)
* Use formik for scene edit panel * Fix unsetting rating * Disable save if not dirty * Movie image fixes
This commit is contained in:
@@ -8,6 +8,7 @@ interface IProps {
|
||||
isEditing: boolean;
|
||||
onToggleEdit: () => void;
|
||||
onSave: () => void;
|
||||
saveDisabled?: boolean;
|
||||
onDelete: () => void;
|
||||
onAutoTag?: () => void;
|
||||
onImageChange: (event: React.FormEvent<HTMLInputElement>) => void;
|
||||
@@ -39,7 +40,12 @@ export const DetailsEditNavbar: React.FC<IProps> = (props: IProps) => {
|
||||
if (!props.isEditing) return;
|
||||
|
||||
return (
|
||||
<Button variant="success" className="save" onClick={() => props.onSave()}>
|
||||
<Button
|
||||
variant="success"
|
||||
className="save"
|
||||
disabled={props.saveDisabled}
|
||||
onClick={() => props.onSave()}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user