From 5fe63360364cd85b33ca797c0152f831cbbb0104 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 14 Mar 2021 12:41:17 -0400 Subject: fixed warnings from missing keys. change file orphans to Unfiled --- src/client/util/CurrentUserUtils.ts | 2 +- src/client/views/MainView.tsx | 14 +++++++------- src/client/views/nodes/PDFBox.tsx | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 894f306c9..9dda90353 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -772,7 +772,7 @@ export class CurrentUserUtils { static async setupFilesystem(doc: Doc) { await doc.myFilesystem; if (doc.myFilesystem === undefined) { - doc.myFileOrphans = Docs.Create.TreeDocument([], { title: "file orphans", _stayInCollection: true, system: true, isFolder: true }); + doc.myFileOrphans = Docs.Create.TreeDocument([], { title: "Unfiled", _stayInCollection: true, system: true, isFolder: true }); doc.myFileRoot = Docs.Create.TreeDocument([], { title: "file root", _stayInCollection: true, system: true, isFolder: true }); doc.myFilesystem = new PrefetchProxy(Docs.Create.TreeDocument([doc.myFileRoot as Doc, doc.myFileOrphans as Doc], { title: "My Documents", _height: 100, diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 1fbcd8fa4..585d68285 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -243,7 +243,7 @@ export class MainView extends React.Component { getContentsHeight = () => this._panelHeight; @computed get mainDocView() { - return { e.stopPropagation(); e.preventDefault(); }} + return
{ e.stopPropagation(); e.preventDefault(); }} style={{ minWidth: `calc(100% - ${this._flyoutWidth + this.menuPanelWidth() + this.propertiesWidth()}px)`, width: `calc(100% - ${this._flyoutWidth + this.menuPanelWidth() + this.propertiesWidth()}px)` }}> {!this.mainContainer ? (null) : this.mainDocView}
; @@ -329,10 +329,10 @@ export class MainView extends React.Component { @computed get flyout() { - return !this._flyoutWidth ?
+ return !this._flyoutWidth ?
{this.docButtons}
: -
+
+ return
{this.menuPanel} -
+
{this.flyout}
@@ -430,7 +430,7 @@ export class MainView extends React.Component { {this.dockingContent} -
+
{this.propertiesWidth() < 10 ? (null) : } diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index a474293e6..d4fc0c103 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -143,7 +143,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent { const active = StrListCast(this.rootDoc[this.sidebarKey() + "-docFilters"]).includes(`${tag}:${tag}:check`); - return
Doc.setDocFilter(this.rootDoc, tag, tag, "check", true, this.sidebarKey())}> {tag}
; -- cgit v1.2.3-70-g09d2