Skip to content

Commit

Permalink
search: hide scope select if only one scope is available
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Oct 21, 2024
1 parent 29227f0 commit 6f6ebd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/components/search/search.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form [formGroup]="search">
<feel-text-field formControlName="query" label="Search" />
<ng-container *ngIf="(scopes | async) as scopes">
<feel-dropdown formControlName="scope" label="Scope">
<feel-dropdown formControlName="scope" label="Scope" *ngIf="scopes.length">
<option value="-1">All</option>
<option *ngFor="let scope of scopes; index as idx" [value]="idx.toString()">
{{scope}}
Expand Down

0 comments on commit 6f6ebd5

Please sign in to comment.