Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/TopBar/TopBarContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ class TopBarContainer extends React.Component {

applyFilters(filter) {
const criteria = _.assign({}, this.props.criteria, filter)
if (criteria && criteria.keyword)
if (criteria && criteria.keyword) {
criteria.keyword = encodeURIComponent(criteria.keyword)
// force sort criteria to best match
criteria.sort = 'best match'
}
this.routeWithParams(criteria, 1)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { Dropdown, DropdownItem } from 'appirio-tech-react-components'
const options = [
{ val: 'createdAt desc', label: 'Latest first' },
{ val: 'createdAt', label: 'Oldest first' },
{ val: 'name', label: 'Name A-Z' }
// { val: 'name desc', label: 'Name Z-A' }
{ val: 'name', label: 'Name A-Z' },
{ val: 'best match', label: 'Best Match' }
]

const ProjectListProjectColHeader = ({currentSortField, sortHandler}) => {
Expand Down