Inheriting added_at with last_updated for better cross-platform support;, fixes #523; Adding 'Shuffle' to queue, fixes #522
This commit is contained in:
@ -275,11 +275,19 @@ class Queue extends React.Component {
|
||||
<ul className="details">
|
||||
<li>{`${queue_tracks.length} tracks`}</li>
|
||||
<li><Dater type="total-time" data={queue_tracks} /></li>
|
||||
{queue_tracks.length > 0 && (
|
||||
<li>
|
||||
<a onClick={this.props.mopidyActions.shuffleTracklist}>
|
||||
<Icon name="shuffle" />
|
||||
Shuffle
|
||||
</a>
|
||||
</li>
|
||||
)}
|
||||
{queue_tracks.length > 0 && (
|
||||
<li>
|
||||
<a onClick={this.props.mopidyActions.clearTracklist}>
|
||||
<Icon name="delete_sweep" />
|
||||
Clear queue
|
||||
Clear
|
||||
</a>
|
||||
</li>
|
||||
)}
|
||||
|
||||
@ -216,7 +216,7 @@ class LibraryAlbums extends React.Component {
|
||||
handleContextMenu={(e, item) => this.handleContextMenu(e, item)}
|
||||
rows={albums}
|
||||
thumbnail
|
||||
details={['artists', 'tracks_uris.length']}
|
||||
details={['artists', 'tracks_uris.length', 'last_modified']}
|
||||
right_column={['added_at']}
|
||||
className="albums"
|
||||
link_prefix="/album/"
|
||||
@ -295,8 +295,8 @@ class LibraryAlbums extends React.Component {
|
||||
label: 'Artist',
|
||||
},
|
||||
{
|
||||
value: 'added_at',
|
||||
label: 'Added',
|
||||
value: 'last_modified',
|
||||
label: 'Updated',
|
||||
},
|
||||
{
|
||||
value: 'tracks_uris.length',
|
||||
|
||||
@ -150,7 +150,7 @@ class LibraryPlaylists extends React.Component {
|
||||
handleContextMenu={(e, item) => this.handleContextMenu(e, item)}
|
||||
rows={playlists}
|
||||
thumbnail
|
||||
details={['owner', 'tracks_total']}
|
||||
details={['owner', 'tracks_total', 'last_modified']}
|
||||
right_column={['source']}
|
||||
className="playlists"
|
||||
link_prefix="/playlist/"
|
||||
@ -217,6 +217,10 @@ class LibraryPlaylists extends React.Component {
|
||||
value: 'name',
|
||||
label: 'Name',
|
||||
},
|
||||
{
|
||||
value: 'last_modified',
|
||||
label: 'Updated',
|
||||
},
|
||||
{
|
||||
value: 'can_edit',
|
||||
label: 'Editable',
|
||||
|
||||
@ -179,7 +179,7 @@ class KioskMode extends React.Component {
|
||||
className="modal--kiosk-mode"
|
||||
extraControls={extraControls}
|
||||
>
|
||||
<Thumbnail className="background" images={images} />
|
||||
<Thumbnail className="background" images={images} placeholder={false} />
|
||||
|
||||
<div className={`player player--${show_lyrics ? 'with' : 'without'}-lyrics`}>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user