diff options
| author | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 | 
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-06-21 21:51:17 -0400 | 
| commit | 669d20040a727cf0599126eccffb175643d4fa09 (patch) | |
| tree | f14822bbda878b48301d8c7f4de89473bcfd6dc7 /src/client/views/nodes/trails/PresElementBox.tsx | |
| parent | e691d8e72ba632f0ef2d4122fe7233f9a48d4439 (diff) | |
| parent | b99e32960ff624237ca99c8d6ee756026a79003a (diff) | |
Merge branch 'master' into data-visualization-view-naafi
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
| -rw-r--r-- | src/client/views/nodes/trails/PresElementBox.tsx | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index 50df00612..1a2f4b93f 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -309,7 +309,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {        @computed get recordingIsInOverlay() {              let isInOverlay = false -            DocListCast((Doc.UserDoc().myOverlayDocs as Doc).data).forEach((doc) => { +            DocListCast(CurrentUserUtils.MyOverlayDocs.data).forEach((doc) => {                    if (doc.slides === this.rootDoc) {                          isInOverlay = true                          return @@ -319,9 +319,9 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {        }        removeAllRecordingInOverlay = () => { -            DocListCast((Doc.UserDoc().myOverlayDocs as Doc).data).forEach((doc) => { +            DocListCast(CurrentUserUtils.MyOverlayDocs.data).forEach((doc) => {                    if (doc.slides === this.rootDoc) { -                        Doc.RemoveDocFromList((Doc.UserDoc().myOverlayDocs as Doc), undefined, doc); +                        Doc.RemoveDocFromList(CurrentUserUtils.MyOverlayDocs, undefined, doc);                    }              })        } @@ -339,7 +339,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {              this.removeAllRecordingInOverlay()              if (activeItem.recording) {                    // if we already have an existing recording -                  Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, Cast(activeItem.recording, Doc, null)); +                  Doc.AddDocToList(CurrentUserUtils.MyOverlayDocs, undefined, Cast(activeItem.recording, Doc, null));              }        } @@ -348,15 +348,15 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {        @action        startRecording = (activeItem: Doc) => {              // Remove every recording that already exists in overlay view -            DocListCast((Doc.UserDoc().myOverlayDocs as Doc).data).forEach((doc) => { +            DocListCast(CurrentUserUtils.MyOverlayDocs.data).forEach((doc) => {                    if (doc.slides !== null) { -                        Doc.RemoveDocFromList((Doc.UserDoc().myOverlayDocs as Doc), undefined, doc); +                        Doc.RemoveDocFromList(CurrentUserUtils.MyOverlayDocs, undefined, doc);                    }              })              if (activeItem.recording) {                    // if we already have an existing recording -                  Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, Cast(activeItem.recording, Doc, null)); +                  Doc.AddDocToList(CurrentUserUtils.MyOverlayDocs, undefined, Cast(activeItem.recording, Doc, null));              } else {                    // if we dont have any recording @@ -376,7 +376,7 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() {                    // make recording box appear in the bottom right corner of the screen                    recording.x = window.innerWidth - recording[WidthSym]() - 20;                    recording.y = window.innerHeight - recording[HeightSym]() - 20; -                  Doc.AddDocToList((Doc.UserDoc().myOverlayDocs as Doc), undefined, recording); +                  Doc.AddDocToList(CurrentUserUtils.MyOverlayDocs, undefined, recording);              }        }  | 
