Skip to content

Commit

Permalink
Added return to sidebar button to search
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablosanqt committed Oct 24, 2024
1 parent c520e33 commit 40175f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ <h4 class="d-inline-block rounded p-1 info">
@if (!courseWideSearchConfig.searchTerm) {
<span jhiTranslate="artemisApp.metis.overview.allPublicMessages"></span>
} @else {
<button class="btn btn-sm btn-outline-secondary d-inline-block d-sm-none me-2" (click)="openSidebar()">
<fa-icon [icon]="faChevronLeft" />
</button>
<span jhiTranslate="artemisApp.metis.overview.searchResults" [translateValues]="{ search: courseWideSearchConfig.searchTerm }"></span>
}
</h4>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
ViewChildren,
ViewEncapsulation,
} from '@angular/core';
import { faCircleNotch, faEnvelope, faFilter, faLongArrowAltDown, faLongArrowAltUp, faPlus, faTimes } from '@fortawesome/free-solid-svg-icons';
import { faChevronLeft, faCircleNotch, faEnvelope, faFilter, faLongArrowAltDown, faLongArrowAltUp, faPlus, faTimes } from '@fortawesome/free-solid-svg-icons';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Subject, takeUntil } from 'rxjs';
import { Course } from 'app/entities/course.model';
Expand Down Expand Up @@ -55,6 +55,7 @@ export class CourseWideSearchComponent implements OnInit, AfterViewInit, OnDestr
faTimes = faTimes;
faEnvelope = faEnvelope;
faCircleNotch = faCircleNotch;
faChevronLeft = faChevronLeft;

readonly SortDirection = SortDirection;
sortingOrder = SortDirection.ASCENDING;
Expand Down

0 comments on commit 40175f2

Please sign in to comment.