gramene-search 1.6.37 → 1.6.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gramene-search",
3
- "version": "1.6.37",
3
+ "version": "1.6.39",
4
4
  "description": "search wrapper for gramene",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -464,6 +464,17 @@ grameneFilters.reactGrameneFilters = createSelector(
464
464
  }
465
465
  return { type: 'BATCH_ACTIONS', actions: actions };
466
466
  }
467
+ if (queryObject.hasOwnProperty('sugg')) {
468
+ const url = new URL(myUrl.href);
469
+ url.search = '';
470
+ return {
471
+ type: 'BATCH_ACTIONS', actions: [
472
+ {type: 'URL_UPDATED', payload: {url: url.href, replace:false}},
473
+ {type: 'GRAMENE_SEARCH_CLEARED'},
474
+ {type: 'GRAMENE_FILTER_ADDED', payload: JSON.parse(queryObject.suggestion)}
475
+ ]
476
+ };
477
+ }
467
478
  if (queryObject.hasOwnProperty('suggestion')) {
468
479
  const url = new URL(myUrl.href);
469
480
  url.search = '';
@@ -80,9 +80,9 @@
80
80
  vertical-align: top;
81
81
  }
82
82
  .suggestion-panlink img {
83
- height: 40px;
83
+ height: 60px;
84
84
  width: auto;
85
- vertical-align: top;
85
+ float: left;
86
86
  }
87
87
  .gene-curation {
88
88
  float:right;
@@ -53,13 +53,10 @@ const TryAnotherSite = props => {
53
53
  const query = props.query;
54
54
  const config = props.config;
55
55
  let sites = Object.keys(config.panSite);
56
- if (config.id === 'main') {
57
- return <div>
58
- <Alert variant={'info'}>Don't see what you're looking for? Search for <b>{query}</b> on one of our sister sites</Alert>
59
- {sites.map((p, idx) => <TryPan key={idx} query={query} pan={config.panSite[p]}/>)}
60
- </div>
61
- }
62
- return <></>
56
+ return <div>
57
+ <Alert variant={'info'}>Don't see what you're looking for? Search for <b>{query}</b> on one of our sister sites</Alert>
58
+ {sites.map((p, idx) => <TryPan key={idx} query={query} pan={config.panSite[p]}/>)}
59
+ </div>
63
60
  }
64
61
 
65
62
  const Suggestions = props => {