File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/reachy_mini/daemon/app/dashboard/static/js Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " reachy_mini"
7- version = " 1.1.0rc3 "
7+ version = " 1.1.0rc4 "
88authors = [{
name =
" Pollen Robotics" ,
email =
" [email protected] " }]
99description = " "
1010readme = " README.md"
Original file line number Diff line number Diff line change 22
33
44const daemon = {
5- currentStatus : { } ,
5+ currentStatus : {
6+ state : null ,
7+ } ,
68
79 start : async ( wakeUp ) => {
810 await fetch ( `/api/daemon/start?wake_up=${ wakeUp } ` , {
@@ -44,8 +46,15 @@ const daemon = {
4446 await fetch ( '/api/daemon/status' )
4547 . then ( ( response ) => response . json ( ) )
4648 . then ( async ( data ) => {
49+ let currentState = daemon . currentStatus . state ;
50+ let newState = data . state || null ;
51+
4752 daemon . currentStatus = data ;
48- await daemon . updateUI ( ) ;
53+
54+ if ( currentState === null || currentState !== newState ) {
55+ await daemon . updateUI ( ) ;
56+ }
57+
4958 } )
5059 . catch ( ( error ) => {
5160 console . error ( 'Error fetching daemon status:' , error ) ;
You can’t perform that action at this time.
0 commit comments