diff options
| author | Fawn <fangrui_tong@brown.edu> | 2019-06-15 17:17:45 -0400 |
|---|---|---|
| committer | Fawn <fangrui_tong@brown.edu> | 2019-06-15 17:17:45 -0400 |
| commit | b4bd43f6e79c9dec30842262f270ca6122f1184a (patch) | |
| tree | 55d2299973e4c479f7f70ca79dfcb1eb872dae82 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | d3e734140c52e69f3d07f1ebe145e554a062addb (diff) | |
cleaned up some leftover linkedfromdocs/linkedtodocs
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index dcc1bd95d..9861b2c20 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -23,6 +23,7 @@ import { DocumentManager } from '../../util/DocumentManager'; import { CollectionViewType } from './CollectionBaseView'; import { Id } from '../../../new_fields/FieldSymbols'; import { CurrentUserUtils } from '../../../server/authentication/models/current_user_utils'; +import { LinkManager } from '../../util/LinkManager'; @observer export class CollectionDockingView extends React.Component<SubCollectionViewProps> { @@ -338,9 +339,9 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp tab.reactComponents = [upDiv]; tab.element.append(upDiv); counter.DashDocId = tab.contentItem.config.props.documentId; - tab.reactionDisposer = reaction(() => [doc.linkedFromDocs, doc.LinkedToDocs, doc.title], + tab.reactionDisposer = reaction(() => [LinkManager.Instance.findAllRelatedLinks(doc), doc.title], () => { - counter.innerHTML = DocListCast(doc.linkedFromDocs).length + DocListCast(doc.linkedToDocs).length; + counter.innerHTML = LinkManager.Instance.findAllRelatedLinks(doc).length; tab.titleElement[0].textContent = doc.title; }, { fireImmediately: true }); tab.titleElement[0].DashDocId = tab.contentItem.config.props.documentId; |
