Commit a3979671 authored by Sean Hammond's avatar Sean Hammond

Hide unanchored warnings when not sidebar

Don't show the "We can't find the exact position of this annotation"
warnings on unanchored annotations when on the stream or individual
annotation pages - only show them in the sidebar.
parent 9a90f5b0
...@@ -11,6 +11,7 @@ module.exports = class WidgetController ...@@ -11,6 +11,7 @@ module.exports = class WidgetController
streamer, streamFilter, store, threading streamer, streamFilter, store, threading
) -> ) ->
$scope.isStream = true $scope.isStream = true
$scope.isSidebar = true
$scope.threadRoot = threading.root $scope.threadRoot = threading.root
@chunkSize = 200 @chunkSize = 200
......
...@@ -47,6 +47,6 @@ ...@@ -47,6 +47,6 @@
</ul> </ul>
<footer class="thread-anchor-notice" <footer class="thread-anchor-notice"
ng-if="feature('show_unanchored_annotations') && !vm.container.message.$anchored"> ng-if="feature('show_unanchored_annotations') && isSidebar && !vm.container.message.$anchored">
<em>We can't find the exact position of this annotation.</em> <em>We can't find the exact position of this annotation.</em>
</footer> </footer>
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