Skip to content
Snippets Groups Projects
Commit 3efcec39 authored by chris's avatar chris
Browse files

set metas also on tools

parent 005286e1
No related branches found
No related tags found
1 merge request!107Tracked transaction
......@@ -10,7 +10,10 @@ export default class Redo extends Tools {
onlyOnMain = true;
get run() {
return redo;
return (state, dispatch) => {
const { tr } = state;
redo(state, tr => dispatch(tr.setMeta("inputType", "historyRedo")));
};
}
get enable() {
......
......@@ -10,7 +10,10 @@ export default class Undo extends Tools {
onlyOnMain = true;
get run() {
return undo;
return (state, dispatch) => {
const { tr } = state;
undo(state, tr => dispatch(tr.setMeta("inputType", "historyUndo")));
};
}
get enable() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment