diff --git a/src/public/components/duplicate-finder-box.js b/src/public/components/duplicate-finder-box.js index a1dbfa0..085911d 100644 --- a/src/public/components/duplicate-finder-box.js +++ b/src/public/components/duplicate-finder-box.js @@ -73,8 +73,12 @@ var DuplicateFinderBox = React.createClass({ } var playlistBox =

Loading...

; + var dupsCount = this.state.dups && this.state.dups.length; if (!this.props.playlistsLoading) { - playlistBox = ; + playlistBox = ; } return ( diff --git a/src/public/components/playlist-box.js b/src/public/components/playlist-box.js index 5d5cea5..9e0963b 100644 --- a/src/public/components/playlist-box.js +++ b/src/public/components/playlist-box.js @@ -30,14 +30,14 @@ var PlaylistBox = React.createClass({ playlists = this.props.playlists.map(function (pl) { var id = pl.id; var active = currentId == id; - var classes = this.props.dupsLoading ? "disabled" : ""; + var dupsCount = active ? !this.props.dupsLoading && this.props.dupsCount : ""; return ( - {pl.name} + {pl.name} {dupsCount} ); }, this);