Adding playlist button to Album Actions
This commit is contained in:
committed by
Deluan Quintão
parent
8fe335ed97
commit
30e98843ed
@@ -9,7 +9,8 @@ import {
|
|||||||
import PlayArrowIcon from '@material-ui/icons/PlayArrow'
|
import PlayArrowIcon from '@material-ui/icons/PlayArrow'
|
||||||
import ShuffleIcon from '@material-ui/icons/Shuffle'
|
import ShuffleIcon from '@material-ui/icons/Shuffle'
|
||||||
import CloudDownloadOutlinedIcon from '@material-ui/icons/CloudDownloadOutlined'
|
import CloudDownloadOutlinedIcon from '@material-ui/icons/CloudDownloadOutlined'
|
||||||
import { playTracks, shuffleTracks } from '../audioplayer'
|
import AddToQueueIcon from '@material-ui/icons/AddToQueue'
|
||||||
|
import { addTracks, playTracks, shuffleTracks } from '../audioplayer'
|
||||||
import subsonic from '../subsonic'
|
import subsonic from '../subsonic'
|
||||||
|
|
||||||
const AlbumActions = ({
|
const AlbumActions = ({
|
||||||
@@ -50,6 +51,14 @@ const AlbumActions = ({
|
|||||||
>
|
>
|
||||||
<CloudDownloadOutlinedIcon />
|
<CloudDownloadOutlinedIcon />
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
dispatch(addTracks(data, ids))
|
||||||
|
}}
|
||||||
|
label={translate('resources.album.actions.addToQueue')}
|
||||||
|
>
|
||||||
|
<AddToQueueIcon />
|
||||||
|
</Button>
|
||||||
</TopToolbar>
|
</TopToolbar>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user