aboutsummaryrefslogtreecommitdiff
path: root/src/components/SearchModal.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-07-01 19:28:12 +1000
committerTerry Truong <terry06890@gmail.com>2022-07-01 19:28:12 +1000
commit551fbe163b90cc1f318612c167fbdfe738dd7132 (patch)
tree00286538d754fdf686751a3d4c1689d799ecd65e /src/components/SearchModal.vue
parentc2b9a8b7a706cdca58dab7f4a980401e1c20a602 (diff)
Generate 3 reduced trees, keeping the original, and serve only those
Generate a 'trimmed' reduced tree instead of changing the original. Generate an 'images-only' reduced tree, and use it as the default. Combine 'picked' reduced tree code with that of other reduced trees. Adapt server API to allow selecting between more than 2 trees. Add client setting for selecting between 3 trees.
Diffstat (limited to 'src/components/SearchModal.vue')
-rw-r--r--src/components/SearchModal.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 2e8b9a2..4d39772 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -117,7 +117,7 @@ export default defineComponent({
// Get URL params to use for querying search-suggestions
let urlParams = 'type=sugg&name=' + encodeURIComponent(input.value);
urlParams += '&limit=' + this.uiOpts.searchSuggLimit;
- urlParams += this.uiOpts.useReducedTree ? '&rtree=true' : '';
+ urlParams += '&tree=' + this.uiOpts.tree;
// Query server, delaying/skipping if a request was recently sent
this.pendingSuggReqParams = urlParams;
this.pendingSuggInput = input.value;
@@ -186,7 +186,7 @@ export default defineComponent({
}
// Ask server for nodes in parent-chain, updates tolMap, then emits search event
let urlParams = 'type=node&toroot=true&name=' + encodeURIComponent(tolNodeName);
- urlParams += this.uiOpts.useReducedTree ? '&rtree=true' : '';
+ urlParams += '&tree=' + this.uiOpts.tree;
let responseObj: {[x: string]: TolNode} = await getServerResponse(urlParams);
if (responseObj == null){
return;