Commit 6c1369bc authored by csillag's avatar csillag

Focusing: identify annotations by tag, instead of ID

... because new and deleted annotations don't have IDs,
only tags, assigned by the bridge.
parent 86d65079
......@@ -242,9 +242,9 @@ class Hypothesis extends Annotator
focused = scope.focusedAnnotations ?= {}
for a in annotations
if state
focused[a.id] = true
focused[a.$$tag] = true
else
delete focused[a.id]
delete focused[a.$$tag]
this
updateViewer: (annotations=[]) ->
......
......@@ -34,7 +34,7 @@
</span>
</li>
<li class="paper thread"
ng-class="{'card-emphasis': focusedAnnotations[child.message.id]}"
ng-class="{'card-emphasis': focusedAnnotations[child.message.$$tag]}"
deep-count="count"
thread="child" thread-filter
thread-collapsed="!search.query"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment