diff --git a/src/js/index.js b/src/js/index.js index c2c0c948..9dcd0c76 100755 --- a/src/js/index.js +++ b/src/js/index.js @@ -56,9 +56,9 @@ ReactDOM.render( - + - + diff --git a/src/js/views/Queue.js b/src/js/views/Queue.js index b1a589b4..74c4d029 100755 --- a/src/js/views/Queue.js +++ b/src/js/views/Queue.js @@ -64,7 +64,7 @@ class Queue extends React.Component{ Radio {this.props.radio && this.props.radio.enabled ? On : null} - diff --git a/src/js/views/Settings.js b/src/js/views/Settings.js index 63aaad39..c182b100 100755 --- a/src/js/views/Settings.js +++ b/src/js/views/Settings.js @@ -165,7 +165,7 @@ class Settings extends React.Component{ var options = ( - diff --git a/src/js/views/library/LibraryLocalAlbums.js b/src/js/views/library/LibraryLocalAlbums.js index ba67407e..53b775a8 100755 --- a/src/js/views/library/LibraryLocalAlbums.js +++ b/src/js/views/library/LibraryLocalAlbums.js @@ -152,6 +152,17 @@ class LibraryLocalAlbums extends React.Component{ ) + if (albums.length <= 0 && helpers.isLoading(this.props.load_queue,['mopidy_lookup','mopidy_browse'])){ + return ( +
+
+
+
+
+
+ ) + } + return (
diff --git a/src/js/views/library/LibraryLocalArtists.js b/src/js/views/library/LibraryLocalArtists.js index 74297044..333a96b1 100755 --- a/src/js/views/library/LibraryLocalArtists.js +++ b/src/js/views/library/LibraryLocalArtists.js @@ -6,6 +6,7 @@ import { bindActionCreators } from 'redux' import Header from '../../components/Header' import List from '../../components/List' +import * as helpers from '../../helpers' import * as uiActions from '../../services/ui/actions' import * as mopidyActions from '../../services/mopidy/actions' import * as spotifyActions from '../../services/spotify/actions' @@ -54,6 +55,17 @@ class LibraryLocalArtists extends React.Component{ } } + if (artists.length <= 0 && helpers.isLoading(this.props.load_queue,['mopidy_lookup','mopidy_browse'])){ + return ( +
+
+
+
+
+
+ ) + } + return (
diff --git a/src/js/views/library/LibraryLocalDirectory.js b/src/js/views/library/LibraryLocalDirectory.js index dd71bcd5..2ad37e6c 100755 --- a/src/js/views/library/LibraryLocalDirectory.js +++ b/src/js/views/library/LibraryLocalDirectory.js @@ -9,6 +9,7 @@ import Header from '../../components/Header' import List from '../../components/List' import TrackList from '../../components/TrackList' +import * as helpers from '../../helpers' import * as mopidyActions from '../../services/mopidy/actions' import * as spotifyActions from '../../services/spotify/actions' @@ -67,10 +68,6 @@ class LibraryLocalDirectory extends React.Component{ } render(){ - if( !this.props.directory ) return null - - var items = this.arrange_directory( this.props.directory ) - var options = null if (this.props.params.uri != 'local:directory' ){ options = ( @@ -81,6 +78,19 @@ class LibraryLocalDirectory extends React.Component{ ) } + if (!this.props.directory || helpers.isLoading(this.props.load_queue,['mopidy_browse'])){ + return ( +
+
+
+
+
+
+ ) + } + + var items = this.arrange_directory( this.props.directory ) + return (