aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionDockingView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-07 23:30:30 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-07 23:30:30 -0400
commit1d770231e7ae6ab2dba7983eb55481e1dd77d42a (patch)
tree873ec56c3c676e7cd4117b8f69b5d09afe869f59 /src/client/views/collections/CollectionDockingView.tsx
parent87276c9f0698b839089f34432763463d46eec60b (diff)
parentd93219266fe09aefec5bf82808ea286ad6ea3710 (diff)
Merge branch 'pdfAnnotations'
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
-rw-r--r--src/client/views/collections/CollectionDockingView.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx
index f559480ed..d84e305a7 100644
--- a/src/client/views/collections/CollectionDockingView.tsx
+++ b/src/client/views/collections/CollectionDockingView.tsx
@@ -405,15 +405,12 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp
handlers: { dragComplete: emptyFunction },
hideSource: false
});
- }}><FontAwesomeIcon icon="file" size="lg" /></span>, dragSpan);
+ }}><FontAwesomeIcon icon="file" color={["white", "maroon", "blue"][Doc.IsBrushedDegree(doc)]} size="lg" /></span>, dragSpan);
ReactDOM.render(<ParentDocSelector Document={doc} addDocTab={doc => CollectionDockingView.Instance.AddTab(stack, doc, dataDoc)} />, upDiv);
tab.reactComponents = [dragSpan, upDiv];
tab.element.append(dragSpan);
tab.element.append(upDiv);
- tab.reactionDisposer = reaction(() => [doc.title],
- () => {
- tab.titleElement[0].textContent = doc.title;
- }, { fireImmediately: true });
+ tab.reactionDisposer = reaction(() => [doc.title], () => tab.titleElement[0].textContent = doc.title, { fireImmediately: true });
//TODO why can't this just be doc instead of the id?
tab.titleElement[0].DashDocId = tab.contentItem.config.props.documentId;
}