From 6d32e83cac709de6cfa23b56fc40e3d9d4e29505 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Thu, 3 Aug 2017 16:56:38 +1200 Subject: [PATCH] Core-ifying --- src/js/components/DebugInfo.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/js/components/DebugInfo.js b/src/js/components/DebugInfo.js index 0fb97126..daab3e99 100755 --- a/src/js/components/DebugInfo.js +++ b/src/js/components/DebugInfo.js @@ -57,19 +57,19 @@ class DebugInfo extends React.Component{ return (
- Albums: {this.props.ui.albums ? Object.keys(this.props.ui.albums).length : '0'} + Albums: {this.props.core.albums ? Object.keys(this.props.core.albums).length : '0'}
- Artists: {this.props.ui.artists ? Object.keys(this.props.ui.artists).length : '0'} + Artists: {this.props.core.artists ? Object.keys(this.props.core.artists).length : '0'}
- Playlists: {this.props.ui.playlists ? Object.keys(this.props.ui.playlists).length : '0'} + Playlists: {this.props.core.playlists ? Object.keys(this.props.core.playlists).length : '0'}
Tracks: {this.props.core.tracks ? Object.keys(this.props.core.tracks).length : '0'}
- Users: {this.props.ui.users ? Object.keys(this.props.ui.users).length : '0'} + Users: {this.props.core.users ? Object.keys(this.props.core.users).length : '0'}
Notifications: {this.props.ui.notifications ? Object.keys(this.props.ui.notifications).length : '0'} @@ -108,6 +108,7 @@ class DebugInfo extends React.Component{ const mapStateToProps = (state, ownProps) => { return { + core: state.core, ui: state.ui, mopidy: state.mopidy }