aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-03 15:21:52 -0500
committerbobzel <zzzman@gmail.com>2020-12-03 15:21:52 -0500
commit74b5ef7cd5f91d4483a407585bca0f6b93883208 (patch)
tree26905ee86bd064c11aa321d9bd59bfb71ec1fc13 /src
parentc990b97e767a9eeffb9c218393486df48bc88aca (diff)
fixed background lock icon
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/TabDocView.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index 1026f043c..61650da6c 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -32,7 +32,6 @@ import React = require("react");
import { List } from '../../../fields/List';
import { DocumentType } from '../../documents/DocumentTypes';
import Color = require('color');
-import { InkTool } from '../../../fields/InkField';
const _global = (window /* browser */ || global /* node */) as any;
interface TabDocViewProps {
@@ -417,9 +416,7 @@ export class TabDocView extends React.Component<TabDocViewProps> {
}
}
- @undoBatch
- @action
- static toggleBackground = (doc: Doc) => {
+ static toggleBackground = undoBatch(action((doc: Doc) => {
const layers = StrListCast(doc.layers);
if (!layers.includes("background")) {
if (!layers.length) doc.layers = new List<string>(["background"]);
@@ -434,7 +431,7 @@ export class TabDocView extends React.Component<TabDocViewProps> {
// Doc.SetNativeWidth(this.props.Document[DataSym], wid);
// Doc.SetNativeHeight(this.props.Document[DataSym], hgt);
}
- }
+ }))
//
// a preliminary implementation of a dash style sheet for setting rendering properties of documents nested within a Tab
//