aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TabDocView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-05 13:52:32 -0500
committerbobzel <zzzman@gmail.com>2021-02-05 13:52:32 -0500
commitd5bda76f901c27771715f2443392ff7d54f99693 (patch)
treefd5cfe9c73cf579ebb1f035820ce8f1ab2c2814c /src/client/views/collections/TabDocView.tsx
parentb846e1c28f92bb21063c15fe43c07d98335b4315 (diff)
cleaned up lightbox. replaced old npm lightbox.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
-rw-r--r--src/client/views/collections/TabDocView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx
index e8162c0ed..1026da64c 100644
--- a/src/client/views/collections/TabDocView.tsx
+++ b/src/client/views/collections/TabDocView.tsx
@@ -34,6 +34,7 @@ import "./TabDocView.scss";
import React = require("react");
import Color = require('color');
import { MainView } from '../MainView';
+import { LightboxView } from '../LightboxView';
const _global = (window /* browser */ || global /* node */) as any;
interface TabDocViewProps {
@@ -278,10 +279,10 @@ export class TabDocView extends React.Component<TabDocViewProps> {
case "close": return CollectionDockingView.CloseSplit(doc, locationParams);
case "fullScreen": return CollectionDockingView.OpenFullScreen(doc);
case "replace": return CollectionDockingView.ReplaceTab(doc, locationParams, this.stack);
+ case "lightbox": return runInAction(() => LightboxView.LightboxDoc = doc) ? true : false;
case "inPlace":
case "add":
- default: runInAction(() => MainView.Instance.LightboxDoc = doc);
- if (MainView.Instance.LightboxDoc) return true;
+ default:
return CollectionDockingView.AddSplit(doc, locationParams, this.stack);
}
}