mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-03-25 04:15:08 +00:00
clear history modal now correctly closes
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
c8e42eebd4
commit
1fa8c8ac53
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ export const ClearHistoryButton: React.FC<ClearHistoryButtonProps> = ({ onClearH
|
|||
<h6><Trans i18nKey={'landing.history.modal.clearHistory.disclaimer'}/></h6>
|
||||
</Modal.Body>
|
||||
<Modal.Footer>
|
||||
<Button variant="danger" onClick={onClearHistory}>
|
||||
<Button variant="danger" onClick={() => {
|
||||
onClearHistory()
|
||||
handleClose()
|
||||
}}>
|
||||
<Trans i18nKey={'landing.history.toolbar.clear'}/>
|
||||
</Button>
|
||||
</Modal.Footer>
|
||||
|
|
Loading…
Reference in a new issue