Skip to content

Commit 06faefb

Browse files
fix overlay issue
1 parent f1fa332 commit 06faefb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nebula/frontend/static/js/deployment/ui-controls.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)