diff options
author | bobzel <zzzman@gmail.com> | 2021-03-25 02:39:52 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-25 02:39:52 -0400 |
commit | d0515c81be9f4292eaf165762ce15e7bc8d1737a (patch) | |
tree | a6f9f445111ad2f18da0fcf9dd1f5e4127bcd413 /src/client/views/LightboxView.tsx | |
parent | 73e5c873f1a22c9a1f0aeb5d0c6f85c5c8b2f8fc (diff) |
moved dictation view to be a component of the screenshotbox
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r-- | src/client/views/LightboxView.tsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index 5715b62b0..84738112f 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -114,11 +114,11 @@ export class LightboxView extends React.Component<LightboxViewProps> { @action public static Next() { const doc = LightboxView._doc!; const target = LightboxView._docTarget = LightboxView._future?.pop(); - const docView = target && DocumentManager.Instance.getLightboxDocumentView(target); - if (docView && target) { - const l = DocUtils.MakeLinkToActiveAudio(target); + const targetDocView = target && DocumentManager.Instance.getLightboxDocumentView(target); + if (targetDocView && target) { + const l = DocUtils.MakeLinkToActiveAudio(targetDocView.ComponentView?.getAnchor?.() || target); l && (Cast(l.anchor2, Doc, null).backgroundColor = "lightgreen"); - docView.focus(target, { originalTarget: target, willZoom: true, scale: 0.9 }); + targetDocView.focus(target, { originalTarget: target, willZoom: true, scale: 0.9 }); if (LightboxView._history?.lastElement().target !== target) LightboxView._history?.push({ doc, target }); } else { if (!target && LightboxView.path.length) { |