diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-22 19:42:54 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-22 19:42:54 -0400 |
commit | 1fb290bcc1c46214cfd553f31c1282d2694530ea (patch) | |
tree | ce1771d0a5db7ad7c88680c9a0d05033f32b8289 /src/client/views/linking/LinkMenuItem.tsx | |
parent | 5c9f40006aa157c58ec40828ebd4845c16daa8af (diff) |
making the box come up
Diffstat (limited to 'src/client/views/linking/LinkMenuItem.tsx')
-rw-r--r-- | src/client/views/linking/LinkMenuItem.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/client/views/linking/LinkMenuItem.tsx b/src/client/views/linking/LinkMenuItem.tsx index 41723030d..60f27c664 100644 --- a/src/client/views/linking/LinkMenuItem.tsx +++ b/src/client/views/linking/LinkMenuItem.tsx @@ -15,6 +15,7 @@ import { CollectionDockingView } from '../collections/CollectionDockingView'; import { SelectionManager } from '../../util/SelectionManager'; import { CollectionViewType } from '../collections/CollectionBaseView'; import { DocumentView } from '../nodes/DocumentView'; +import { SearchUtil } from '../../util/SearchUtil'; library.add(faEye, faEdit, faTimes, faArrowRight, faChevronDown, faChevronUp); @@ -64,6 +65,13 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { } // DONE + @undoBatch + openFullScreen = () => { + let view: DocumentView | null = DocumentManager.Instance.getDocumentView(this.props.destinationDoc); + view && CollectionDockingView.Instance && CollectionDockingView.Instance.OpenFullScreen(view); + } + + // DONE // this opens the linked doc in a right split, NOT in its collection @undoBatch openLinkRight = () => { @@ -161,10 +169,12 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { dv.props.addDocument && dv.props.addDocument(alias, false); } }); + + this.jumpToLink(false); } //set this to be the default link behavior, can be any of the above - private defaultLinkBehavior: any = this.openLinkInPlace; + private defaultLinkBehavior: any = this.openLinkTab; onEdit = (e: React.PointerEvent): void => { e.stopPropagation(); |