fix search view when no results, release 2.4.1
This commit is contained in:
parent
a4e02e6f76
commit
cc541b9ddf
|
@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
## [2.4.1 - 2019-08-04]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed a wonky search UI when there are no results.
|
||||||
|
|
||||||
## [2.4.0 - 2019-08-04]
|
## [2.4.0 - 2019-08-04]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -22,7 +22,7 @@ config :backend, Backend.Repo, queue_target: 5000
|
||||||
|
|
||||||
instances_config_path =
|
instances_config_path =
|
||||||
if System.get_env("MIX_ENV") == "prod",
|
if System.get_env("MIX_ENV") == "prod",
|
||||||
do: "lib/backend-2.4.0/priv/elasticsearch/instances.json",
|
do: "lib/backend-2.4.1/priv/elasticsearch/instances.json",
|
||||||
else: "priv/elasticsearch/instances.json"
|
else: "priv/elasticsearch/instances.json"
|
||||||
|
|
||||||
config :backend, Backend.Elasticsearch.Cluster,
|
config :backend, Backend.Elasticsearch.Cluster,
|
||||||
|
|
|
@ -4,7 +4,7 @@ defmodule Backend.MixProject do
|
||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :backend,
|
app: :backend,
|
||||||
version: "2.4.0",
|
version: "2.4.1",
|
||||||
elixir: "~> 1.5",
|
elixir: "~> 1.5",
|
||||||
elixirc_paths: elixirc_paths(Mix.env()),
|
elixirc_paths: elixirc_paths(Mix.env()),
|
||||||
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
compilers: [:phoenix, :gettext] ++ Mix.compilers(),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "2.4.0",
|
"version": "2.4.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "NODE_ENV=development react-scripts start",
|
"start": "NODE_ENV=development react-scripts start",
|
||||||
|
|
|
@ -120,7 +120,7 @@ class SearchScreen extends React.PureComponent<ISearchScreenProps, ISearchScreen
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isSmallScreen && results.length === 0 && this.renderMobileWarning()}
|
{isSmallScreen && results.length === 0 && this.renderMobileWarning()}
|
||||||
<SearchBarContainer hasSearchResults={results.length > 0} hasError={!!error}>
|
<SearchBarContainer hasSearchResults={!!query && !!results} hasError={!!error}>
|
||||||
<H2>Find an instance</H2>
|
<H2>Find an instance</H2>
|
||||||
<InputGroup
|
<InputGroup
|
||||||
leftIcon={IconNames.SEARCH}
|
leftIcon={IconNames.SEARCH}
|
||||||
|
|
Loading…
Reference in a new issue