• Robert Knight's avatar
    Handle search updates directly within `TopBar` component · 2b52a5ae
    Robert Knight authored
    Instead of passing a `searchController` prop into `TopBar` which is
    responsible for reading and updating the search query, from different
    sources depending on whether this is the sidebar or stream, handle
    reading/updating the search from within `TopBar` itself:
    
     - In the sidebar, read/update the filter query in the store
     - In the stream, render a `StreamSearchInput` control which
       reads/updates the "$q" param from the Angular `$location` service
    
    This removes some indirection and makes it easier to follow where the
    search input gets its data from and what happens when it is changed.
    
    Also fix a bug where existing annotations were not cleared after a route
    change from `/a/:id` to `/stream?q={query}`.
    2b52a5ae
Name
Last commit
Last update
..
annotation-header.html Loading commit data...
annotation-share-dialog.html Loading commit data...
annotation-thread.html Loading commit data...
annotation-viewer-content.html Loading commit data...
annotation.html Loading commit data...
excerpt.html Loading commit data...
help-panel.html Loading commit data...
hypothesis-app.html Loading commit data...
loggedout-message.html Loading commit data...
markdown.html Loading commit data...
moderation-banner.html Loading commit data...
new-note-btn.html Loading commit data...
search-status-bar.html Loading commit data...
selection-tabs.html Loading commit data...
share-dialog.html Loading commit data...
sidebar-content.html Loading commit data...
sidebar-tutorial.html Loading commit data...
stream-content.html Loading commit data...
tag-editor.html Loading commit data...
thread-list.html Loading commit data...