Add/Remove to libraries; Almost ready to bring in to dev pipeline
This commit is contained in:
@ -182,8 +182,6 @@ class LibraryAlbums extends React.Component {
|
||||
} = this.state;
|
||||
let { albums } = this.props;
|
||||
|
||||
console.log('library albums render', loading, albums.length);
|
||||
|
||||
if (loading) {
|
||||
return <Loader body loading />;
|
||||
}
|
||||
@ -347,6 +345,7 @@ class LibraryAlbums extends React.Component {
|
||||
/>
|
||||
<Button
|
||||
noHover
|
||||
discrete
|
||||
onClick={this.onRefresh}
|
||||
tracking={{ category: 'LibraryAlbums', action: 'Refresh' }}
|
||||
>
|
||||
|
||||
@ -309,6 +309,7 @@ class LibraryArtists extends React.Component {
|
||||
/>
|
||||
<Button
|
||||
noHover
|
||||
discrete
|
||||
onClick={this.onRefresh}
|
||||
tracking={{ category: 'LibraryArtists', action: 'Refresh' }}
|
||||
>
|
||||
|
||||
@ -303,6 +303,15 @@ class LibraryPlaylists extends React.Component {
|
||||
options={source_options}
|
||||
handleChange={(value) => { uiActions.set({ library_playlists_source: value }); uiActions.hideContextMenu(); }}
|
||||
/>
|
||||
<Button
|
||||
noHover
|
||||
discrete
|
||||
onClick={this.onRefresh}
|
||||
tracking={{ category: 'LibraryAlbums', action: 'Refresh' }}
|
||||
>
|
||||
<Icon name="refresh" />
|
||||
<I18n path="actions.refresh" />
|
||||
</Button>
|
||||
<Button
|
||||
to="/playlist/create"
|
||||
noHover
|
||||
@ -312,14 +321,6 @@ class LibraryPlaylists extends React.Component {
|
||||
<Icon name="add_box" />
|
||||
<I18n path="actions.add" />
|
||||
</Button>
|
||||
<Button
|
||||
noHover
|
||||
onClick={this.onRefresh}
|
||||
tracking={{ category: 'LibraryAlbums', action: 'Refresh' }}
|
||||
>
|
||||
<Icon name="refresh" />
|
||||
<I18n path="actions.refresh" />
|
||||
</Button>
|
||||
</span>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user