Skip to content
Snippets Groups Projects
Commit 35d6af96 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Removed alerts

parent 4fd58453
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56614 passed
......@@ -22,18 +22,14 @@ export class HistoryNavigator extends React.Component<propTypes> {
* Undo a step in the history object.
*/
handleUndo() {
if (!this.props.historyObject.undo()) {
alert("Something went wrong, could not undo.");
}
this.props.historyObject.undo();
}
/**
* Redo a step in the hisory object.
*/
handleRedo() {
if (!this.props.historyObject.redo()) {
alert("Something went wrong, could not redo.");
}
this.props.historyObject.redo();
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment