Skip to content

Commit

Permalink
[No Ticket] Change queryparam passed to SHARE when filtering by resou…
Browse files Browse the repository at this point in the history
…rceType (#1915)

* change queryparam passed to SHARE when filtering by resourceType

* add types

* add some more types

* update tests
  • Loading branch information
adlius authored and bp-cos committed Oct 27, 2023
1 parent 54039ec commit af7d42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/institutions/discover/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Filter, OnSearchParams, ResourceTypeFilterValue } from 'osf-components/
export default class InstitutionDiscoverController extends Controller {
@service currentUser!: CurrentUser;

@tracked q?: string = '';
@tracked cardSearchText?: string = '';
@tracked sort?: string = '-relevance';
@tracked resourceType: ResourceTypeFilterValue = ResourceTypeFilterValue.Projects;
@tracked activeFilters?: Filter[] = [];
Expand Down
2 changes: 1 addition & 1 deletion app/search/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { tracked } from '@glimmer/tracking';
import { Filter, OnSearchParams, ResourceTypeFilterValue } from 'osf-components/components/search-page/component';

export default class SearchController extends Controller {
@tracked q?: string = '';
@tracked cardSearchText?: string = '';
@tracked sort?: string = '-relevance';
@tracked resourceType?: ResourceTypeFilterValue | null = null;
@tracked activeFilters?: Filter[] = [];
Expand Down

0 comments on commit af7d42e

Please sign in to comment.