File tree Expand file tree Collapse file tree
nebula/frontend/static/js/deployment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -341,14 +341,13 @@ const UIControls = (function() {
341341 if ( response . redirected ) {
342342 window . location . href = response . url ;
343343 } else if ( ! response . ok ) {
344+ hideLoadingIndicators ( ) ;
344345 handleDeploymentError ( response . status ) ;
345346 }
346347 } catch ( error ) {
347348 console . error ( 'Error:' , error ) ;
348349 hideLoadingIndicators ( ) ;
349350 handleDeploymentError ( 500 , error ) ;
350- } finally {
351- hideLoadingIndicators ( ) ;
352351 }
353352 } ;
354353 }
@@ -388,7 +387,9 @@ const UIControls = (function() {
388387 }
389388
390389 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+ }
392393 // Remove the modal backdrop
393394 const backdrop = document . querySelector ( '.modal-backdrop' ) ;
394395 if ( backdrop ) {
You can’t perform that action at this time.
0 commit comments