mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Added downtime for play button
Signed-off-by: SystemsPurge <naktiyoussef@proton.me>
This commit is contained in:
parent
86b8dd2c2d
commit
ed4884394b
1 changed files with 2 additions and 3 deletions
|
@ -67,7 +67,7 @@ const WidgetPlayer = (
|
|||
const res = await dispatch(loadICbyId({id: playerIC.id, token:sessionToken}));
|
||||
setICState(res.payload.state)
|
||||
}
|
||||
const timer = window.setInterval(() => refresh(), 3000);
|
||||
const timer = window.setInterval(() => refresh(), 1000);
|
||||
return () => {
|
||||
window.clearInterval(timer);
|
||||
};
|
||||
|
@ -137,6 +137,7 @@ const WidgetPlayer = (
|
|||
|
||||
const clickStart = async () => {
|
||||
try {
|
||||
setPlayerState(transitionState(playerState, 'ICBUSY'));
|
||||
let pld = {action:"start",when:Math.round((new Date()).getTime() / 1000),parameters:{...config.startParameters}}
|
||||
if(isUploadResultsChecked){
|
||||
addResult({result: {
|
||||
|
@ -161,8 +162,6 @@ const WidgetPlayer = (
|
|||
} catch(error) {
|
||||
notificationsDataManager.addNotification(NotificationsFactory.LOAD_ERROR(error?.data?.message));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
const clickReset = async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue