Add/Remove to libraries; Almost ready to bring in to dev pipeline

This commit is contained in:
James Barnsley
2020-09-26 23:03:28 +12:00
parent 3a6d243430
commit 6f6ec6986b
21 changed files with 291 additions and 226 deletions

View File

@ -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' }}
>

View File

@ -309,6 +309,7 @@ class LibraryArtists extends React.Component {
/>
<Button
noHover
discrete
onClick={this.onRefresh}
tracking={{ category: 'LibraryArtists', action: 'Refresh' }}
>

View File

@ -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>
);