mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
fixed an issue with the AoT build
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<ds-search-form id="search-form"
|
<ds-search-form id="search-form"
|
||||||
[query]="(searchOptions$ | async)?.query"
|
[query]="(searchOptions$ | async)?.query"
|
||||||
[scope]="(searchOptions$ | async)?.scope"
|
[scope]="(searchOptions$ | async)?.scope"
|
||||||
[currentUrl]="service.getSearchLink()"
|
[currentUrl]="getSearchLink()"
|
||||||
[scopes]="(scopeListRD$ | async)?.payload?.page">
|
[scopes]="(scopeListRD$ | async)?.payload?.page">
|
||||||
</ds-search-form>
|
</ds-search-form>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@@ -77,4 +77,8 @@ export class SearchPageComponent implements OnInit {
|
|||||||
public isSidebarCollapsed(): Observable<boolean> {
|
public isSidebarCollapsed(): Observable<boolean> {
|
||||||
return this.sidebarService.isCollapsed;
|
return this.sidebarService.isCollapsed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getSearchLink(): string {
|
||||||
|
return this.service.getSearchLink();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -236,7 +236,7 @@ export class SearchService implements OnDestroy {
|
|||||||
this.router.navigate([this.getSearchLink()], navigationExtras);
|
this.router.navigate([this.getSearchLink()], navigationExtras);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSearchLink() {
|
getSearchLink(): string {
|
||||||
const urlTree = this.router.parseUrl(this.router.url);
|
const urlTree = this.router.parseUrl(this.router.url);
|
||||||
const g: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
const g: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
||||||
return '/' + g.toString();
|
return '/' + g.toString();
|
||||||
|
Reference in New Issue
Block a user