mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Added back Global Search related code that caused Snap to not build.
Thanks to xet7 ! Related https://github.com/wekan/wekan/pull/3492
This commit is contained in:
parent
a17e628872
commit
334dfa5cb6
2 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ template(name="globalSearch")
|
||||||
else
|
else
|
||||||
h1
|
h1
|
||||||
= resultsHeading.get
|
= resultsHeading.get
|
||||||
a.fa.fa-link(title="{{_ 'link-to-search' }}" href="")
|
a.fa.fa-link(title="{{_ 'link-to-search' }}" href="{{ getSearchHref }}")
|
||||||
each card in results.get
|
each card in results.get
|
||||||
+resultCard(card)
|
+resultCard(card)
|
||||||
table.global-search-footer
|
table.global-search-footer
|
||||||
|
|
|
||||||
|
|
@ -480,6 +480,11 @@ BlazeComponent.extendComponent({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getSearchHref() {
|
||||||
|
const baseUrl = window.location.href.replace(/([?#].*$|\s*$)/, '');
|
||||||
|
return `${baseUrl}?q=${encodeURIComponent(this.query.get())}`;
|
||||||
|
},
|
||||||
|
|
||||||
searchInstructions() {
|
searchInstructions() {
|
||||||
tags = {
|
tags = {
|
||||||
operator_board: TAPi18n.__('operator-board'),
|
operator_board: TAPi18n.__('operator-board'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue