Simplify: universal Action predicates instead of action-specific guards.

This commit is contained in:
Daniel J. Geiger 2023-01-27 14:21:35 -06:00
parent bb96f322c6
commit 1d3652a96c
6 changed files with 83 additions and 159 deletions

View file

@ -480,7 +480,6 @@ class App extends React.Component<AppProps, AppState> {
});
this.history = new History();
this.actionManager.registerAll(actions);
this.actionManager.registerActionGuards();
this.actionManager.registerAction(createUndoAction(this.history));
this.actionManager.registerAction(createRedoAction(this.history));