diff --git a/web/src/routes/System.jsx b/web/src/routes/System.jsx index e5afcd22f..b3cc0931a 100644 --- a/web/src/routes/System.jsx +++ b/web/src/routes/System.jsx @@ -63,7 +63,7 @@ export default function System() { }); if (response.status === 200) { - setState({ showFfprobe: true, ffprobe: JSON.stringify(response.data, null, 2) }); + setState({ ...state, showFfprobe: true, ffprobe: JSON.stringify(response.data, null, 2) }); } else { setState({ ...state, ffprobe: 'There was an error getting the ffprobe output.' }); } @@ -74,11 +74,26 @@ export default function System() { setState({ ...state, ffprobe: '', showFfprobe: false }); }; + const onHandleVainfo = async (e) => { + if (e) { + e.stopPropagation(); + } + + const response = axios.get('vainfo'); + + if (response.status === 200) { + setState({ ...state, showVainfo: true, vainfo: JSON.stringify(resonse.data, null, 2)}) + } else { + setState({ ...state, showVainfo: true, 'There was an error getting the vainfo output.'}) + } + }; + return (