aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/TemplateMenu.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-07-01 13:12:16 -0400
committeryipstanley <stanley_yip@brown.edu>2019-07-01 13:12:16 -0400
commit72d077b38e94b867307b9a9523be49a9ffa20a66 (patch)
tree533eb93a4a74e9d598f69ea271c9165ce18cb34c /src/client/views/TemplateMenu.tsx
parent2b6e76fb60d4dafd1c5383f21f870542cc808aff (diff)
parent5c9983880f34bf6949a01035ba1e3fcb9c75ec99 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into pdf_fixes
Diffstat (limited to 'src/client/views/TemplateMenu.tsx')
-rw-r--r--src/client/views/TemplateMenu.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/TemplateMenu.tsx b/src/client/views/TemplateMenu.tsx
index a9bc4d3d2..a53c8749a 100644
--- a/src/client/views/TemplateMenu.tsx
+++ b/src/client/views/TemplateMenu.tsx
@@ -6,6 +6,7 @@ import './DocumentDecorations.scss';
import { DocumentView } from "./nodes/DocumentView";
import { Template } from "./Templates";
import React = require("react");
+import { undoBatch } from "../util/UndoManager";
const higflyout = require("@hig/flyout");
export const { anchorPoints } = higflyout;
export const Flyout = higflyout.default;
@@ -39,6 +40,7 @@ export class TemplateMenu extends React.Component<TemplateMenuProps> {
super(props);
}
+ @undoBatch
@action
toggleTemplate = (event: React.ChangeEvent<HTMLInputElement>, template: Template): void => {
if (event.target.checked) {