mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix save disabled when creating new object with name (#3409)
* Dirty when creating with name * Fix prompt on tag save
This commit is contained in:
@@ -120,6 +120,11 @@ export const GalleryEditPanel: React.FC<
|
||||
onSubmit: (values) => onSave(getGalleryInput(values)),
|
||||
});
|
||||
|
||||
// always dirty if creating a new gallery with a title
|
||||
if (isNew && gallery?.title) {
|
||||
formik.dirty = true;
|
||||
}
|
||||
|
||||
function setRating(v: number) {
|
||||
formik.setFieldValue("rating100", v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user