Преглед на файлове

Removed Global Search related code that caused Snap to not build.

Thanks to xet7 !

Related https://github.com/wekan/wekan/pull/3492
Lauri Ojansivu преди 4 години
родител
ревизия
442a7b0fcd
променени са 2 файла, в които са добавени 1 реда и са изтрити 6 реда
  1. 1 1
      client/components/main/globalSearch.jade
  2. 0 5
      client/components/main/globalSearch.js

+ 1 - 1
client/components/main/globalSearch.jade

@@ -34,7 +34,7 @@ template(name="globalSearch")
           else
           else
             h1
             h1
               = resultsHeading.get
               = resultsHeading.get
-              a.fa.fa-link(title="{{_ 'link-to-search' }}" href="{{ getSearchHref }}")
+              a.fa.fa-link(title="{{_ 'link-to-search' }}" href="")
             each card in results.get
             each card in results.get
               +resultCard(card)
               +resultCard(card)
             table.global-search-footer
             table.global-search-footer

+ 0 - 5
client/components/main/globalSearch.js

@@ -480,11 +480,6 @@ 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'),