diff options
author | bobzel <zzzman@gmail.com> | 2021-02-10 19:06:53 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-02-10 19:06:53 -0500 |
commit | f240c85ff0adee914b43d9d169fa31260e03265d (patch) | |
tree | 696ec4ac02c6d47b898532096968bcb1763f87a8 /src/client/views/LightboxView.tsx | |
parent | c37675d530f77ad2c077d0155d2ee3e35c55978b (diff) |
fixed following link to document in another context to work in LightboxView
Diffstat (limited to 'src/client/views/LightboxView.tsx')
-rw-r--r-- | src/client/views/LightboxView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/LightboxView.tsx b/src/client/views/LightboxView.tsx index f19aff5f0..4e9491ec6 100644 --- a/src/client/views/LightboxView.tsx +++ b/src/client/views/LightboxView.tsx @@ -19,6 +19,7 @@ interface LightboxViewProps { @observer export class LightboxView extends React.Component<LightboxViewProps> { @observable public static LightboxDoc: Opt<Doc>; + public static IsLightboxDocView(path: DocumentView[]) { return path.includes(LightboxView.LightboxDocView.current!); } public static LightboxHistory: (Opt<Doc>)[] = []; public static LightboxFuture: (Opt<Doc>)[] = []; public static LightboxDocView = React.createRef<DocumentView>(); |