Skip to content

Commit

Permalink
CORE-1967 Enable dirty flag in Metadata form back button
Browse files Browse the repository at this point in the history
  • Loading branch information
psarando committed Feb 29, 2024
1 parent eb3c1ec commit 3dc590f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/metadata/form/MetadataFormToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const MetadataFormToolbar = (props) => {
const {
baseId,
title,
dirty,
saveDisabled,
showSave,
onSave,
Expand All @@ -59,7 +60,7 @@ const MetadataFormToolbar = (props) => {

return (
<Toolbar variant="dense" className={classes.metadataFormToolbar}>
<BackButton />
<BackButton dirty={dirty} />
<Typography
id={buildID(baseId, ids.TITLE)}
variant="h6"
Expand Down
1 change: 1 addition & 0 deletions src/components/metadata/form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ const MetadataFormListing = (props) => {
setShowImportConfirmationDialog(true)
}
targetResource={targetResource}
dirty={dirty}
/>

{irodsAVUs?.length > 0 && (
Expand Down

0 comments on commit 3dc590f

Please sign in to comment.