Restore confirmation modal for proceed with build button
This commit is contained in:
@@ -113,8 +113,14 @@ async function proceedWithBuild(planContent) {
|
|||||||
el.modelSelectWrap.style.display = 'inline-flex';
|
el.modelSelectWrap.style.display = 'inline-flex';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Directly execute the build without showing confirmation modal
|
// Show confirmation modal before proceeding
|
||||||
await executeBuild(planContent);
|
if (el.confirmBuildModal) {
|
||||||
|
el.confirmBuildModal.style.display = 'flex';
|
||||||
|
} else {
|
||||||
|
// Fallback to confirm if modal not found for some reason
|
||||||
|
const confirmBuild = confirm("Are you sure you want to proceed with this plan? This will start the build process.");
|
||||||
|
if (confirmBuild) await executeBuild(planContent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function executeBuild(planContent) {
|
async function executeBuild(planContent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user