File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
nebula/frontend/static/js/deployment Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -341,14 +341,13 @@ const UIControls = (function() {
341
341
if ( response . redirected ) {
342
342
window . location . href = response . url ;
343
343
} else if ( ! response . ok ) {
344
+ hideLoadingIndicators ( ) ;
344
345
handleDeploymentError ( response . status ) ;
345
346
}
346
347
} catch ( error ) {
347
348
console . error ( 'Error:' , error ) ;
348
349
hideLoadingIndicators ( ) ;
349
350
handleDeploymentError ( 500 , error ) ;
350
- } finally {
351
- hideLoadingIndicators ( ) ;
352
351
}
353
352
} ;
354
353
}
@@ -388,7 +387,9 @@ const UIControls = (function() {
388
387
}
389
388
390
389
function cleanupModal ( modal ) {
391
- document . querySelector ( ".overlay" ) . style . display = "none" ;
390
+ if ( ! document . getElementById ( "spinner" ) . style . display === "block" ) {
391
+ document . querySelector ( ".overlay" ) . style . display = "none" ;
392
+ }
392
393
// Remove the modal backdrop
393
394
const backdrop = document . querySelector ( '.modal-backdrop' ) ;
394
395
if ( backdrop ) {
You can’t perform that action at this time.
0 commit comments