Skip to content
Permalink
Browse files
fix(header): Replace search-panel with fulltext-search (#313)
  • Loading branch information
kilchenmann committed Oct 7, 2020
1 parent 4ea3299 commit d234fa7be480f0769474c39ae39169d2ad3d4c4f
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/app/main/header/header.component.html
  2. +2 −2 src/app/main/header/header.component.spec.ts
@@ -12,8 +12,8 @@ <h1 class="mat-headline mobile-only">DSP</h1>

<!-- search-panel (in desktop and tablet version) -->
<span class="action searchbar-large-screen">
<dsp-search-panel [projectfilter]="true" [expert]="false" [advanced]="false" (search)="doSearch($event)">
</dsp-search-panel>
<dsp-fulltext-search [projectfilter]="true" (search)="doSearch($event)">
</dsp-fulltext-search>
<!-- advanced and expert search (in desktop and tablet version) -->
<span class="other-search-link">
<button mat-button color="primary" class="advanced-search-link" routerLink="/search/advanced">
@@ -95,8 +95,8 @@ describe('HeaderComponent', () => {
expect(loginBtnLabel).toEqual('LOGIN');
});

it('should display the search panel', () => {
const searchPanel = fixture.debugElement.query(By.css('dsp-search-panel'));
it('should display fulltext-search', () => {
const searchPanel = fixture.debugElement.query(By.css('dsp-fulltext-search-panel'));
expect(searchPanel).toBeDefined();
});

0 comments on commit d234fa7

Please sign in to comment.