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:
Philip Molares
2026-05-14 00:17:12 +02:00
committed by Erik Michelson
parent 9dc1178f08
commit 2f34e0d778
@@ -40,12 +40,6 @@ export const RevisionModalFooter: React.FC<RevisionModalFooterProps> = ({
const noteAlias = useApplicationState((state) => state.noteDetails?.primaryAlias) const noteAlias = useApplicationState((state) => state.noteDetails?.primaryAlias)
const { showErrorNotificationBuilder } = useUiNotifications() 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(() => { const onDownloadRevision = useCallback(() => {
if (selectedRevisionId === undefined || noteAlias === undefined) { if (selectedRevisionId === undefined || noteAlias === undefined) {
return return
@@ -74,13 +68,6 @@ export const RevisionModalFooter: React.FC<RevisionModalFooterProps> = ({
disabled={disableDeleteRevisions}> disabled={disableDeleteRevisions}>
<Trans i18nKey={'editor.modal.deleteRevision.button'} /> <Trans i18nKey={'editor.modal.deleteRevision.button'} />
</Button> </Button>
<Button
variant='danger'
disabled={selectedRevisionId === undefined}
onClick={onRevertToRevision}
{...cypressId('revision.modal.revert.button')}>
<Trans i18nKey={'editor.modal.revision.revertButton'} />
</Button>
<Button <Button
variant='primary' variant='primary'
disabled={selectedRevisionId === undefined} disabled={selectedRevisionId === undefined}