Skip to content

Commit

Permalink
Fix fake searchbox behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Feb 4, 2024
1 parent b46f59a commit c6b4efe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,19 @@

</div>

<a class='search-box fake' *ngIf='fake'
[href]='externalUrlHref ? externalUrl : null'
[routerLink]='externalUrlHref ? null : ["/s"]'
queryParamsHandling='merge'
clickOnReturn>
<span>חיפוש באתר...</span>
</a>
@if (fake) {
@if (externalUrlHref) {
<a class='search-box fake'
[href]='externalUrl'
clickOnReturn>
<span>חיפוש באתר...</span>
</a>
} @else {
<a class='search-box fake'
[routerLink]='["/s"]'
queryParamsHandling='merge'
clickOnReturn>
<span>חיפוש באתר...</span>
</a>
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import {
Component,
ElementRef,
EventEmitter,
HostListener,
Inject,
Input,
OnChanges,
OnInit,
Expand Down Expand Up @@ -123,7 +121,7 @@ export class BkSearchBar implements OnChanges, AfterViewInit, OnInit {
this.globalSettings.theme,
this.globalSettings.lang,
this.ps.browser() ? window.location.hostname : 'server-side'
);
);
}
}

Expand Down

0 comments on commit c6b4efe

Please sign in to comment.