From 14e9ff5a952321f1047b7808dd596ac93d0c1295 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Sun, 12 Jun 2022 00:11:39 +0800 Subject: [PATCH] add: click filename in dialog to play --- web/src/component/FileDialog.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/src/component/FileDialog.js b/web/src/component/FileDialog.js index 731afea..5085619 100644 --- a/web/src/component/FileDialog.js +++ b/web/src/component/FileDialog.js @@ -11,7 +11,17 @@ function FileDialog(props) { return ( -

{props.file.filename}

+

{ + props.setPlayingFile(props.file); + props.setShowStatus(false); + }} + > + {props.file.filename} +

Play: play using browser player.