This commit is contained in:
Raven Scott
2024-12-02 03:51:17 -05:00
parent ffb51d0d72
commit 72e164fe34
2 changed files with 13 additions and 3 deletions

View File

@ -222,8 +222,8 @@ deployForm.addEventListener('submit', async (e) => {
console.log('[DEBUG] Deploy payload:', deployPayload);
try {
// showStatusIndicator('Deploying container...');
showStatusIndicator('Deploying container...');
closeAllModals();
// Send the deployment request
await deployDockerContainer(deployPayload);
@ -235,8 +235,8 @@ deployForm.addEventListener('submit', async (e) => {
console.log('[INFO] Deployment success:', successResponse);
hideStatusIndicator();
closeAllModals();
showAlert('success', successResponse.message);
startStatsInterval();
} catch (error) {
console.error('[ERROR] Failed to deploy container:', error.message);
hideStatusIndicator();