Skip to content

Commit

Permalink
Merged in DSC-1207 (pull request DSpace#796)
Browse files Browse the repository at this point in the history
[DSC-1207] fixed “search tools” button behavior

Approved-by: Andrea Barbasso
Approved-by: Vincenzo Mecca
  • Loading branch information
alisaismailati authored and vins01-4science committed Sep 20, 2023
2 parents 3495ce0 + 7ef26d4 commit baa76ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div>
<div class="bg-white">
<div id="sidebar-options" class="d-block d-md-none search-controls clearfix">
<small class="results">{{resultCount}} {{"search.sidebar.results" | translate}}</small>
<button (click)="toggleSidebar.emit()"
Expand Down
6 changes: 3 additions & 3 deletions src/app/shared/sidebar/sidebar.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export class SidebarService {
* @returns {Observable<boolean>} Emits true if the user's screen size is mobile or when the state in the store is currently collapsed
*/
get isCollapsed(): Observable<boolean> {
return observableCombineLatest(
return observableCombineLatest([
this.isXsOrSm$,
this.isCollapsedInStore
).pipe(
map(([mobile, store]) => mobile || store)
]).pipe(
map(([mobile, store]) => mobile && store)
);
}

Expand Down

0 comments on commit baa76ca

Please sign in to comment.