Changes for page Context Search
Last modified by bougault on 2023/02/20 16:29
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -40,7 +40,7 @@ 40 40 this.editor = false; 41 41 this.viewer = false; 42 42 this.rolesFilter = []; 43 - this.filterUrl = new URL(`${document.location.origin}/rest/v1/collabs?search=&offset=0&orderField=title&order=asc&favorite= true&roles=`);43 + this.filterUrl = new URL(`${document.location.origin}/rest/v1/collabs?search=&offset=0&orderField=title&order=asc&favorite=&roles=`); 44 44 this.results = []; 45 45 } 46 46 toggleRoleFilter(roleName) { ... ... @@ -51,6 +51,7 @@ 51 51 } 52 52 this[roleName] = !this[roleName]; 53 53 this.filterUrl.searchParams.set('roles', this.rolesFilter.join("+")); 54 + console.log(this.filterUrl.toString()); 54 54 } 55 55 setSearchText(e) { 56 56 this.searchText = e.target.value; ... ... @@ -65,9 +65,8 @@ 65 65 // request should be built from component, not from "external" dependency. Leave it here like this for POC. 66 66 handleXWikiSearch(this.searchText).then(results => this.results = results); 67 67 } 68 - buildFilter() { 69 - //https://wiki-dev.ebrains.eu/rest/v1/collabs?search=&offset=0&orderField=title&order=asc&favorite=true&roles= 70 - } 69 + 70 + 71 71 getLink(xwikiDocSpace) { 72 72 return `/bin/view/${xwikiDocSpace.replaceAll('.', '/')}`; 73 73 } ... ... @@ -121,4 +121,5 @@ 121 121 </script> 122 122 123 123 <clb-unified-search></clb-unified-search> 124 + 124 124 {{/html}}