[Trunk|Library]: searchForm.component: 'link' input parameter type changed from 'boolean' to 'string'.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@55220 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
konstantina.galouni 2019-04-08 12:11:54 +00:00
parent 826e084a2e
commit afc1cca4fa
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ export class SearchFormComponent {
@Input() keyword: string = '';
@Input() generalSearch: boolean = false;
@Input() placeholderText: string = "Type keywords";
@Input() link: boolean = false;
@Input() link: string = "";
public routerHelper:RouterHelper = new RouterHelper();
@Output() keywordChange = new EventEmitter();
@ -43,6 +43,7 @@ export class SearchFormComponent {
});
}
goTo() {
this._router.navigate(['/search/find'], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
//this._router.navigate(['/search/find'], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
this._router.navigate([this.link], { queryParams: this.routerHelper.createQueryParam('keyword',this.keyword) });
}
}