mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added navigation button
This commit is contained in:
parent
5a79ecabbf
commit
a3f1892e8a
@ -43,6 +43,12 @@ const ReleaseItem = (props) => {
|
|||||||
<div
|
<div
|
||||||
className="music_panel_releases_actions"
|
className="music_panel_releases_actions"
|
||||||
>
|
>
|
||||||
|
<antd.Button
|
||||||
|
onClick={props.onClickNavigate}
|
||||||
|
>
|
||||||
|
Open
|
||||||
|
</antd.Button>
|
||||||
|
|
||||||
<antd.Button
|
<antd.Button
|
||||||
onClick={props.onClickEditTrack}
|
onClick={props.onClickEditTrack}
|
||||||
icon={<Icons.Edit />}
|
icon={<Icons.Edit />}
|
||||||
@ -68,7 +74,7 @@ export default (props) => {
|
|||||||
<Icons.MdOutlineQueueMusic />
|
<Icons.MdOutlineQueueMusic />
|
||||||
Creator
|
Creator
|
||||||
</h2>,
|
</h2>,
|
||||||
width: "50%",
|
width: "fit-content",
|
||||||
},
|
},
|
||||||
componentProps: {
|
componentProps: {
|
||||||
playlist_id: playlist_id,
|
playlist_id: playlist_id,
|
||||||
@ -76,6 +82,10 @@ export default (props) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const navigateToPlaylist = (playlist_id) => {
|
||||||
|
return app.setLocation(`/play/${playlist_id}`)
|
||||||
|
}
|
||||||
|
|
||||||
const [L_Releases, R_Releases, E_Releases] = app.cores.api.useRequest(PlaylistsModel.getMyReleases)
|
const [L_Releases, R_Releases, E_Releases] = app.cores.api.useRequest(PlaylistsModel.getMyReleases)
|
||||||
|
|
||||||
if (E_Releases) {
|
if (E_Releases) {
|
||||||
@ -119,6 +129,7 @@ export default (props) => {
|
|||||||
key={release._id}
|
key={release._id}
|
||||||
release={release}
|
release={release}
|
||||||
onClickEditTrack={() => openPlaylistCreator(release._id)}
|
onClickEditTrack={() => openPlaylistCreator(release._id)}
|
||||||
|
onClickNavigate={() => navigateToPlaylist(release._id)}
|
||||||
/>
|
/>
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user