File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed
Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 11# IDEFIX Terminal Changelog
22
3+ ## [ 1.1.3] - 2025-05-09
4+
5+ > _ Important: Please clear your browser cache (e.g. ** Ctrl+F5** ) to ensure outdated files are updated._
6+
7+ - FIXED: better update behavior.
8+
39## [ 1.1.2] - 2025-05-09
410
511> _ Important: Please clear your browser cache (e.g. ** Ctrl+F5** ) to ensure outdated files are updated._
Original file line number Diff line number Diff line change @@ -28,16 +28,10 @@ export const LoadingProvider = ({ children }: { children: ReactNode }) => {
2828 < Ctx . Provider value = { api } >
2929 { children }
3030
31- < Backdrop open = { state . open } sx = { { zIndex : 1301 , color : 'white' , backdropFilter : 'blur(3px)' } } >
31+ < Backdrop open = { state . open } sx = { { zIndex : 9998 , color : 'white' , backdropFilter : 'blur(3px)' } } >
3232 < Fade in = { state . open } timeout = { 300 } >
3333 < Stack spacing = { 2 } sx = { { minWidth : 240 } } alignItems = "center" >
34- { state . progress === undefined ? (
35- < CircularProgress size = { 48 } thickness = { 4 } />
36- ) : (
37- < >
38- < Typography variant = "caption" > { state . message } %</ Typography >
39- </ >
40- ) }
34+ < CircularProgress size = { 48 } thickness = { 4 } />
4135 { state . message && < Typography variant = "caption" > { state . message } </ Typography > }
4236 </ Stack >
4337 </ Fade >
Original file line number Diff line number Diff line change @@ -178,19 +178,25 @@ class Engine {
178178 } ) ;
179179
180180 if ( windowReload ) {
181- setTimeout ( ( ) => window . location . reload ( ) , 1_000 ) ;
181+ setTimeout ( ( ) => window . location . reload ( ) , 1000 ) ;
182182 }
183183 }
184184 async checkLoadingProgress ( opts : { onUpdate : ( msg ?: string , progress ?: number ) => void ; onDone : ( ) => void } ) : Promise < void > {
185185 const timer = setInterval ( async ( ) => {
186186 const r = await this . getResponse ( ) ;
187+
187188 if ( r . loading ) {
188189 opts . onUpdate ( r . loading . message , r . loading . progress ) ;
190+
191+ if ( typeof r . loading . progress === 'number' && r . loading . progress >= 100 ) {
192+ clearInterval ( timer ) ;
193+ opts . onDone ( ) ;
194+ }
189195 } else {
190196 clearInterval ( timer ) ;
191197 opts . onDone ( ) ;
192198 }
193- } , 1000 ) ;
199+ } , 300 ) ;
194200 }
195201}
196202
You can’t perform that action at this time.
0 commit comments