From 58335ead6d5c0937f356b002991de9b2a5fc42c9 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 2 Dec 2024 04:00:48 -0500 Subject: [PATCH] fix --- libs/templateDeploy.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libs/templateDeploy.js b/libs/templateDeploy.js index 8a1666c..f7729f9 100644 --- a/libs/templateDeploy.js +++ b/libs/templateDeploy.js @@ -226,9 +226,13 @@ deployForm.addEventListener('submit', async (e) => { closeAllModals(); // Send the deployment request await deployDockerContainer(deployPayload); - // hideStatusIndicator(); - // showAlert('success', successResponse.message); - startStatsInterval(); + + // Wait for a specific response + // Wait for the specific response + + console.log('[INFO] Deployment success:', successResponse); + hideStatusIndicator(); + showAlert('success', successResponse.message); } catch (error) { console.error('[ERROR] Failed to deploy container:', error.message); hideStatusIndicator();