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 ...@@ -242,9 +242,9 @@ class Hypothesis extends Annotator
focused = scope.focusedAnnotations ?= {} focused = scope.focusedAnnotations ?= {}
for a in annotations for a in annotations
if state if state
focused[a.id] = true focused[a.$$tag] = true
else else
delete focused[a.id] delete focused[a.$$tag]
this this
updateViewer: (annotations=[]) -> updateViewer: (annotations=[]) ->
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</span> </span>
</li> </li>
<li class="paper thread" <li class="paper thread"
ng-class="{'card-emphasis': focusedAnnotations[child.message.id]}" ng-class="{'card-emphasis': focusedAnnotations[child.message.$$tag]}"
deep-count="count" deep-count="count"
thread="child" thread-filter thread="child" thread-filter
thread-collapsed="!search.query" 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