Commit 20a116a2 authored by Randall Leeds's avatar Randall Leeds

Force visibility for new annotations

parent 2f4e5ffe
......@@ -84,9 +84,6 @@ module.exports = class AppController
# Reload the view.
$route.reload()
$rootScope.$on 'beforeAnnotationCreated', ->
$scope.clearSelection()
$scope.login = ->
$scope.dialog.visible = true
identity.request {oncancel}
......
......@@ -353,7 +353,9 @@ module.exports = [
if editing
counter.count 'edit', 1
# Disable the filter and freeze it to always match while editing.
threadFilter?.freeze()
if thread? and threadFilter?
threadFilter.active(false)
threadFilter.freeze(true)
else if old
counter.count 'edit', -1
threadFilter?.freeze(false)
......
......@@ -42,7 +42,7 @@
ng-click="scrollTo(child.message)"
ng-mouseleave="focus()"
ng-repeat="child in threadRoot.children | filter:notOrphan | orderBy : sort.predicate"
ng-show="shouldShowThread(child) && (count('edit') || count('match') || !threadFilter.active())">
ng-show="shouldShowThread(child) && (count('edit') || count('match') || !threadFilter.active()) || vm.isNew()">
</li>
</ul>
<!-- / Thread view -->
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