diff --git a/src/js/components/DebugInfo.js b/src/js/components/DebugInfo.js index 4cab8cf0..b4d965fc 100755 --- a/src/js/components/DebugInfo.js +++ b/src/js/components/DebugInfo.js @@ -41,43 +41,45 @@ class DebugInfo extends React.Component{ } } - return ( -
- {queue} -
- ) + if (queue.length > 0){ + return ( +
+
+ {queue} +
+ ) + } else { + return null + } } render(){ - var touch_state = 'no touch' - if (this.props.ui.emulate_touch){ - touch_state = 'emulated touch' - } else if (helpers.isTouchDevice()){ - touch_state = 'touch device' - } - return (
- {this.props.ui.albums ? Object.keys(this.props.ui.albums).length : '0'} albums + Albums: {this.props.ui.albums ? Object.keys(this.props.ui.albums).length : '0'}
- {this.props.ui.artists ? Object.keys(this.props.ui.artists).length : '0'} artists + Artists: {this.props.ui.artists ? Object.keys(this.props.ui.artists).length : '0'}
- {this.props.ui.playlists ? Object.keys(this.props.ui.playlists).length : '0'} playlists + Playlists: {this.props.ui.playlists ? Object.keys(this.props.ui.playlists).length : '0'}
- {this.props.ui.tracks ? Object.keys(this.props.ui.tracks).length : '0'} tracks + Tracks: {this.props.ui.tracks ? Object.keys(this.props.ui.tracks).length : '0'}
- {this.props.ui.users ? Object.keys(this.props.ui.users).length : '0'} users + Users: {this.props.ui.users ? Object.keys(this.props.ui.users).length : '0'}
- {this.props.ui.notifications ? Object.keys(this.props.ui.notifications).length : '0'} notifications + Notifications: {this.props.ui.notifications ? Object.keys(this.props.ui.notifications).length : '0'} +
+
+
+ _testMode: {window._testMode ? 'on' : 'off'}
- {touch_state} + Touch: {helpers.isTouchDevice() ? 'yes' : 'no'}
{this.renderLoadQueue()}