Skip to content

Commit

Permalink
#106 Filter annotations title
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 30, 2020
1 parent 4c0c6a2 commit 0eabf0f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/components/FilterPopover/FilterPopover.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,14 @@ function FilterPopover({ session }) {
<Popover id="filter-popover">
<Popover.Content>
<Card>
<Card.Header>
<Card.Title>Filter Annotations</Card.Title>
</Card.Header>
<Card.Body>
<Row>
<Col>
<Form.Group style={{ marginTop: '0px' }}>
<Form.Label>Annotated By</Form.Label>
<Form.Label>By User</Form.Label>
<Typeahead
id="typehead-annotated-by"
labelKey="name"
Expand All @@ -294,7 +297,12 @@ function FilterPopover({ session }) {
clearButton
highlightOnlyResult
disabled={documentFilters.filters.permissions === 0}
selected={UpdateSelectedTokensMatchesValue('annotatedBy', DeepCopyObj(documentFilters.filters.annotatedBy))}
selected={
UpdateSelectedTokensMatchesValue(
'annotatedBy',
DeepCopyObj(documentFilters.filters.annotatedBy),
)
}
onChange={(selected) => { updateFilters('annotatedBy', selected); }}
onMenuToggle={(isOpen) => {
if (isOpen) {
Expand Down

0 comments on commit 0eabf0f

Please sign in to comment.