diff options
author | bobzel <zzzman@gmail.com> | 2022-06-04 23:55:57 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-04 23:55:57 -0400 |
commit | 3eb19bae60f824df746de54e987340435ff4bfab (patch) | |
tree | 070d3514a42f356c5c49f8845120dd9aaf605a3e /src | |
parent | f3f74570b6bb6433ea6367c57d4be7b5c00bec4b (diff) |
restored lightbox option for pres elements.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/trails/PresBox.tsx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/views/nodes/trails/PresBox.tsx b/src/client/views/nodes/trails/PresBox.tsx index a434ed24d..ab5382581 100644 --- a/src/client/views/nodes/trails/PresBox.tsx +++ b/src/client/views/nodes/trails/PresBox.tsx @@ -397,12 +397,8 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps>() { }; // If openDocument is selected then it should open the document for the user if (activeItem.openDocument) { - // LightboxView.SetLightboxDoc(targetDoc); - // activeItem: "slide in the sidebar" --> maps to target document (targetDoc) in the canvas - console.log(activeItem); - console.log("openDocument triggered"); - - openInTab(targetDoc); + LightboxView.SetLightboxDoc(targetDoc); + // openInTab(targetDoc); } else if (curDoc.presMovement === PresMovement.Pan && targetDoc) { LightboxView.SetLightboxDoc(undefined); await DocumentManager.Instance.jumpToDocument(targetDoc, false, openInTab, [srcContext], undefined, undefined, undefined, includesDoc || tab ? undefined : resetSelection, undefined, true); // documents open in new tab instead of on right |