aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-27 19:59:14 -0400
committerbobzel <zzzman@gmail.com>2020-08-27 19:59:14 -0400
commit2e0e34df0db385acfcd4079fae6e01fd4a2234fa (patch)
tree3cf83489ce62b374538f88e243e269d9ae33a997 /src/client/views/presentationview
parentf738601ac9b497334e17835535f7572c961ee373 (diff)
added undo for deleting presentation view items. fixed scroll height of mainView sidebar.
Diffstat (limited to 'src/client/views/presentationview')
-rw-r--r--src/client/views/presentationview/PresElementBox.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/presentationview/PresElementBox.tsx b/src/client/views/presentationview/PresElementBox.tsx
index e965ac656..e1b97887a 100644
--- a/src/client/views/presentationview/PresElementBox.tsx
+++ b/src/client/views/presentationview/PresElementBox.tsx
@@ -20,6 +20,7 @@ import { DocumentType } from "../../documents/DocumentTypes";
import { Tooltip } from "@material-ui/core";
import { DragManager } from "../../util/DragManager";
import { CurrentUserUtils } from "../../util/CurrentUserUtils";
+import { undoBatch } from "../../util/UndoManager";
export const presSchema = createSchema({
presentationTargetDoc: Doc,
@@ -206,6 +207,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps, PresDoc
}
}
+ @undoBatch
@action
removeItem = (e: React.MouseEvent) => {
this.props.removeDocument?.(this.rootDoc);