add: click filename in dialog to play

This commit is contained in:
2022-06-12 00:11:39 +08:00
parent 544b5afc0d
commit 14e9ff5a95

View File

@@ -11,7 +11,17 @@ function FileDialog(props) {
return ( return (
<dialog open={props.showStatus}> <dialog open={props.showStatus}>
<p>{props.file.filename}</p> <p
style={{
cursor: "pointer",
}}
onClick={() => {
props.setPlayingFile(props.file);
props.setShowStatus(false);
}}
>
{props.file.filename}
</p>
<p> <p>
Play: play using browser player. Play: play using browser player.
<br /> <br />