aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-10-23 23:35:01 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-10-23 23:35:01 -0400
commit910e4d8a22a312d2ca0b8a970ff434604f7c6f91 (patch)
treea74313b0464300c79520b7679cfb3066e449c4c7 /src/client/util/DocumentManager.ts
parentc861f31a93ad246b9200b328a63df15da795f050 (diff)
several fixes to audio documents to make linking work better and to customize the audio controls UI
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 0f2a47dd0..346e88f40 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -101,10 +101,10 @@ export class DocumentManager {
@computed
public get LinkedDocumentViews() {
let pairs = DocumentManager.Instance.DocumentViews.filter(dv =>
- dv.isSelected() || Doc.IsBrushed(dv.props.Document) // draw links from DocumentViews that are selected or brushed OR
+ (dv.isSelected() || Doc.IsBrushed(dv.props.Document)) // draw links from DocumentViews that are selected or brushed OR
|| DocumentManager.Instance.DocumentViews.some(dv2 => { // Documentviews which
let rest = DocListCast(dv2.props.Document.links).some(l => Doc.AreProtosEqual(l, dv.props.Document));// are link doc anchors
- let init = dv2.isSelected() || Doc.IsBrushed(dv2.props.Document); // on a view that is selected or brushed
+ let init = (dv2.isSelected() || Doc.IsBrushed(dv2.props.Document)) && dv2.Document.type !== DocumentType.AUDIO; // on a view that is selected or brushed
return init && rest;
})
).reduce((pairs, dv) => {