mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2026-06-23 04:10:17 +00:00
refactor(frontend): remove revision revert button
We did not implement this functionality yet and won't for some time so in order for HedgeDoc 2 to become release ready, this button will be removed. Fixes #6478 Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
committed by
Erik Michelson
parent
9dc1178f08
commit
2f34e0d778
-13
@@ -40,12 +40,6 @@ export const RevisionModalFooter: React.FC<RevisionModalFooterProps> = ({
|
||||
const noteAlias = useApplicationState((state) => state.noteDetails?.primaryAlias)
|
||||
const { showErrorNotificationBuilder } = useUiNotifications()
|
||||
|
||||
const onRevertToRevision = useCallback(() => {
|
||||
// TODO Websocket message handler missing
|
||||
// see https://github.com/hedgedoc/hedgedoc/issues/1984
|
||||
window.alert('Not yet implemented. Requires websocket.')
|
||||
}, [])
|
||||
|
||||
const onDownloadRevision = useCallback(() => {
|
||||
if (selectedRevisionId === undefined || noteAlias === undefined) {
|
||||
return
|
||||
@@ -74,13 +68,6 @@ export const RevisionModalFooter: React.FC<RevisionModalFooterProps> = ({
|
||||
disabled={disableDeleteRevisions}>
|
||||
<Trans i18nKey={'editor.modal.deleteRevision.button'} />
|
||||
</Button>
|
||||
<Button
|
||||
variant='danger'
|
||||
disabled={selectedRevisionId === undefined}
|
||||
onClick={onRevertToRevision}
|
||||
{...cypressId('revision.modal.revert.button')}>
|
||||
<Trans i18nKey={'editor.modal.revision.revertButton'} />
|
||||
</Button>
|
||||
<Button
|
||||
variant='primary'
|
||||
disabled={selectedRevisionId === undefined}
|
||||
|
||||
Reference in New Issue
Block a user