diff --git a/IRIS_VERSION b/IRIS_VERSION index 1cc2eac08..d50ee18d8 100755 --- a/IRIS_VERSION +++ b/IRIS_VERSION @@ -1 +1 @@ -3.69.2 +3.69.3 diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 6d5e39ff7..c85aa7a41 100755 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -2,10 +2,13 @@ version: "3" services: snapserver: image: jaedb/snapserver + depends_on: + mopidy: + condition: service_healthy ports: - - 1704:1704 - - 1705:1705 - - 1780:1780 + - 1704 + - 1705 + - 1780 volumes: - /tmp/snapserver:/tmp - ./docker/snapserver/snapserver.conf:/etc/snapserver.conf @@ -14,13 +17,13 @@ services: image: jaedb/iris environment: - PIP_PACKAGES=Mopidy-YTMusic Mopidy-Tidal Mopidy-SoundCloud Mopidy-MusicBox-Webclient - build: - context: . - depends_on: - - snapserver ports: - - 6600:6600 - - 6680:6680 + - 6600 + - 6680 + healthcheck: + test: curl -f http://localhost:6680/iris/http/get_config || exit 1 + timeout: 5s + retries: 5 volumes: # - ./mopidy/iris:/iris/mopidy/iris # To use a locally-built UI - ./docker/mopidy/iris:/var/lib/mopidy/iris # Iris-specific storage diff --git a/mopidy_iris/__init__.py b/mopidy_iris/__init__.py index 49c1708f6..c535c1e21 100755 --- a/mopidy_iris/__init__.py +++ b/mopidy_iris/__init__.py @@ -3,7 +3,7 @@ from mopidy import config, ext -__version__ = "3.69.2" +__version__ = "3.69.3" logger = logging.getLogger(__name__) diff --git a/package.json b/package.json index 1ab828287..e3e9e693d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mopidy-iris", - "version": "3.69.2", + "version": "3.69.3", "description": "Mopidy HTTP interface", "repository": "https://github.com/jaedb/iris", "author": "James Barnsley ", diff --git a/setup.cfg b/setup.cfg index af92270fd..1fba27f60 100755 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = Mopidy-Iris -version = 3.69.2 +version = 3.69.3 url = https://github.com/jaedb/iris author = James Barnsley author_email = james@barnsley.nz diff --git a/src/js/App.js b/src/js/App.js index 38ca038ed..54d8b5279 100755 --- a/src/js/App.js +++ b/src/js/App.js @@ -55,6 +55,7 @@ const Content = () => ( } /> } /> } /> + } /> } /> } /> } /> diff --git a/src/js/components/SearchResults.js b/src/js/components/SearchResults.js index a434fed07..91ba997de 100755 --- a/src/js/components/SearchResults.js +++ b/src/js/components/SearchResults.js @@ -38,8 +38,6 @@ const SearchResults = ({ results = results.slice(0, 6); } - if (all && !results.length) return null; - return (

@@ -60,7 +58,7 @@ const SearchResults = ({ )}

- {results.length > 0 && ( + {results.length > 0 ? (
{type === 'artists' && } {type === 'albums' && } @@ -84,6 +82,10 @@ const SearchResults = ({ )}
+ ) : ( + + + )}
); diff --git a/src/js/locale/en.yaml b/src/js/locale/en.yaml index 77eb86efc..214ddef59 100755 --- a/src/js/locale/en.yaml +++ b/src/js/locale/en.yaml @@ -339,6 +339,7 @@ search: sort: Sort source: Sources placeholder: Search + no_results: No results all: title: All artists: diff --git a/src/js/views/Search.js b/src/js/views/Search.js index fceed8052..50757b0a2 100755 --- a/src/js/views/Search.js +++ b/src/js/views/Search.js @@ -50,7 +50,7 @@ const Search = () => { const updateSearchQuery = (term, providers) => { const encodedTerm = encodeURIComponent(term); - navigate(`/search/${type}/${providers.join(',')}/${encodedTerm || ''}`); + navigate(`/search/${type}/${providers.join(',') || 'none'}/${encodedTerm || ''}`); } const onReset = () => navigate('/search'); @@ -113,13 +113,15 @@ const Search = () => { onReset={onReset} /> -
- {type != 'all' ? ( - - ) : ( - - )} -
+ {term && ( +
+ {type != 'all' ? ( + + ) : ( + + )} +
+ )} ); }