Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Context Search - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Changes for page Context Search

Last modified by bougault on 2023/02/20 16:29

From version 27.54
edited by bougault
on 2022/11/17 14:21
Change comment: There is no comment for this version
To version 27.45
edited by bougault
on 2022/11/17 14:08
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -61,18 +61,7 @@
61 61   handleSearch(textSearch) {
62 62   if(this.searchText !== "" || textSearch) {
63 63   if(this.searchText !== this.prevSearchText) {
64 - this.clearResults();
65 65   this.prevSearchText = this.searchText;
66 - this.fetchWikiSearch().then(results => {
67 - console.log(results);
68 - this.resultsCache = results;
69 - if(this.hasActiveFilters()) {
70 - this.fetchFilterSearch().then(this.filterResults);
71 - } else {
72 - this.results = results;
73 - }
74 - })
75 - /*
76 76   Promise.all([
77 77   this.fetchWikiSearch(),
78 78   this.fetchFilterSearch()
... ... @@ -81,7 +81,6 @@
81 81   this.resultsCache = wikiSearchResults;
82 82   console.log(wikiSearchResults, collabSearchResults);
83 83   });
84 - */
85 85   } else if (this.searchText === this.prevSearchText && this.hasActiveFilters()) {
86 86   this.fetchFilterSearch().then(this.filterResults)
87 87   } else {
... ... @@ -128,7 +128,7 @@
128 128  <div>
129 129   <div>
130 130   <input @change="${this.setSearchText}" type="text" placeholder="Search..." />
131 - <button @click="${() => this.handleSearch(true)}">Search</button>
119 + <button @click="${this.handleSearch}">Search</button>
132 132   </div>
133 133   <div>
134 134   <label><input type="checkbox" @change="${() => this.toggleRoleFilter('administrator')}" .checked="${this.administratorFilter}"/> Administrator</label>