diff options
| author | Aubrey Li <Aubrey-Li> | 2022-03-03 18:12:13 -0500 |
|---|---|---|
| committer | Aubrey Li <Aubrey-Li> | 2022-03-03 18:12:13 -0500 |
| commit | 3573a81d334cf8cc13d19b04c6f2094c24c43932 (patch) | |
| tree | dc83cb0c25d0960f170058c8b25179ae5efc68a0 /src/client/views/collections | |
| parent | d010c3875b4a6b113f4f2099f201abbf1b8d4eb0 (diff) | |
edit: lightbox opens tab in the same stack
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 2 | ||||
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index f543d924d..79e036a0e 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -449,7 +449,7 @@ export class CollectionDockingView extends CollectionSubView(doc => doc) { alert('cant delete the last stack'); } })); - stack.header?.controlsContainer.find('.lm_popout') //get the close icon + stack.header?.controlsContainer.find('.lm_popout') //get the popout icon .off('click') //unbind the current click handler .click(action(() => { // stack.config.fixed = !stack.config.fixed; // force the stack to have a fixed size diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 7e57d0e89..c11b6c7b3 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -300,7 +300,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { case "replace": return CollectionDockingView.ReplaceTab(doc, locationParams, this.stack); case "lightbox": { // TabDocView.PinDoc(doc, { hidePresBox: true }); - return LightboxView.AddDocTab(doc, location); + return LightboxView.AddDocTab(doc, location, undefined, this.addDocTab); } case "inPlace": case "add": |
