aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-03 12:10:31 -0400
committerbob <bcz@cs.brown.edu>2019-04-03 12:10:31 -0400
commit3b456da9c1d90abcfcf33fc6fd762cad1dff7ca7 (patch)
treefd13a754cb1893ab6e9a0b1afbf38cc6cf802278 /src/client/views/nodes/DocumentView.tsx
parent6d327d692a316b7dacbb542950d913a9ca361dbb (diff)
merged with changes to DocumentDecorations so you can minimize/maximize without menu
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 2b9372e15..bc627015c 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -70,18 +70,18 @@ export function FakeJsxArgs(keys: string[], fields: string[] = []): JsxArgs {
let Keys: { [name: string]: any } = {};
let Fields: { [name: string]: any } = {};
for (const key of keys) {
- let fn = () => {};
+ let fn = () => { };
Object.defineProperty(fn, "name", { value: key + "Key" });
Keys[key] = fn;
}
for (const field of fields) {
- let fn = () => {};
+ let fn = () => { };
Object.defineProperty(fn, "name", { value: field });
Fields[field] = fn;
}
let args: JsxArgs = {
- Document: function Document() {},
- DocumentView: function DocumentView() {},
+ Document: function Document() { },
+ DocumentView: function DocumentView() { },
Keys,
Fields
} as any;
@@ -115,7 +115,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
return (
!this.props.ContainingCollectionView ||
this.props.ContainingCollectionView.collectionViewType ==
- CollectionViewType.Docking
+ CollectionViewType.Docking
);
}
@computed get layout(): string {
@@ -233,7 +233,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
};
DragManager.StartDocumentDrag([this._mainCont.current], dragData, {
handlers: {
- dragComplete: action(() => {})
+ dragComplete: action(() => { })
},
hideSource: !dropAliasOfDraggedDoc
});
@@ -307,7 +307,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
};
@action
- minimize = (e: React.MouseEvent): void => {
+ public minimize = (): void => {
this.props.Document.SetData(
KeyStore.Minimized,
true as boolean,