6868 :name =" name"
6969 :node-status =" nodeStatus"
7070 :status =" status"
71- @get-status =" getAllStatus()"
7271 />
7372 </v-col >
7473 <template v-if =" nodeStatus .serviceStatus === ' Running' " >
@@ -349,6 +348,11 @@ async function autoRefresh() {
349348 }
350349}
351350
351+ watch (
352+ () => store .refreshStatus ,
353+ async () => await getAllStatus ()
354+ );
355+
352356async function getAllStatus() {
353357 await getNodeStatus ();
354358 await getAlgodStatus ();
@@ -392,6 +396,7 @@ async function getNodeStatus() {
392396}
393397
394398let restartAttempted = false ;
399+ let retry = false ;
395400
396401async function getAlgodStatus() {
397402 try {
@@ -400,6 +405,7 @@ async function getAlgodStatus() {
400405 } else {
401406 algodStatus .value = undefined ;
402407 }
408+ retry = false ;
403409 if (nodeStatus .value ?.retiStatus ?.version && ! retiLatest .value ) {
404410 const releases = await axios ({
405411 url: " https://api.github.com/repos/algorandfoundation/reti/releases/latest" ,
@@ -422,6 +428,11 @@ async function getAlgodStatus() {
422428 autoRefresh ();
423429 }
424430 } catch (err : any ) {
431+ if (! retry ) {
432+ retry = true ;
433+ await getAllStatus ();
434+ return ;
435+ }
425436 console .error (err );
426437 if (err .status !== 502 && ! store .downloading )
427438 store .setSnackbar (err ?.response ?.data || err .message , " error" );
@@ -496,7 +507,7 @@ watch(
496507function reloadPartDetails() {
497508 if (! partDetails .value ) return ;
498509 partDetails .value = undefined ;
499- store .refresh ++ ;
510+ store .refreshPart ++ ;
500511 showReset .value = false ;
501512}
502513
0 commit comments