Skip to content

Commit

Permalink
Merge pull request #892 from terrestris/confirmation-modal
Browse files Browse the repository at this point in the history
fix: removes non-functional review changes button
  • Loading branch information
AmandaTamanda authored Nov 15, 2024
2 parents ac51e76 + ec6b043 commit b9b0ccc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,6 @@

}
.selectionButtons{
margin-top: 10px;
}

.acceptChangesButton{
position: absolute;
right: 0;
margin-right: 20px;
}
.discardChangesButton{
position: absolute;
right: 0;
margin-right: 90px;
}
.viewChangesButton{
margin-left: 30px;
display: flex;
justify-content: space-evenly;
}
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,6 @@ export function GeneralEntityRoot<T extends BaseEntity>({
}
Modal.destroyAll();
};
const reviewChanges = () => {
Modal.destroyAll();
setFormIsDirty(true);
};

/**
* Fetch entity or create new one
Expand All @@ -281,10 +277,6 @@ export function GeneralEntityRoot<T extends BaseEntity>({
closable: true,
footer: ([
<div key="modalButtons" className='selectionButtons'>
<Button className='viewChangesButton'
onClick={() => reviewChanges()}>
{t('GeneralEntityRoot.reminderModal.review')}
</Button>
<Button className='discardChangesButton'
onClick={() => discardChanges()}
>{t('GeneralEntityRoot.reminderModal.decline')}
Expand Down

0 comments on commit b9b0ccc

Please sign in to comment.