mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-05 13:40:27 -05:00
provide way to access full results page
This commit is contained in:
@@ -59,10 +59,17 @@ function Suggestion(hit) {
|
||||
return html`<li class="bw-ss__item"><button type="button" class="bw-ss__button" onClick=${() => acceptSuggestion(hit)}>${hit.title}</button></li>`
|
||||
}
|
||||
|
||||
function DefaultSearch({q}) {
|
||||
console.log(q)
|
||||
if (!q) return ""
|
||||
return html`<li class="bw-ss__item"><button type="submit" class="bw-ss__button">Results for "${q}"</button></li>`
|
||||
}
|
||||
|
||||
function SuggestionList() {
|
||||
return html`
|
||||
<ul class=${classNames(["bw-ss__list", focus.value && "bw-ss__list--focus", `bw-ss__list--${st.value}`])}>
|
||||
${suggestions.value.map(hit => html`<${Suggestion} ...${hit} />`)}
|
||||
<${DefaultSearch} q=${query.value} />
|
||||
</ul>`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user