all task completed message
This commit is contained in:
5
samy.js
5
samy.js
@@ -29,7 +29,7 @@ function logProgress(label, isSuccess) {
|
||||
if (completedTasks === totalTasks) {
|
||||
const finalMsg = document.createElement("div");
|
||||
finalMsg.style.marginTop = "10px";
|
||||
finalMsg.innerHTML = `<strong> All tasks complete (${completedTasks}/${totalTasks})</strong>`;
|
||||
finalMsg.innerHTML = `<strong> All tasks completed (${completedTasks}/${totalTasks})</strong>`;
|
||||
statusBox?.appendChild(finalMsg);
|
||||
|
||||
document.title = ` ScriptMonkey - Complete (${completedTasks}/${totalTasks})`;
|
||||
@@ -333,6 +333,9 @@ async function triggerInstall() {
|
||||
console.error("triggerInstall fatal error:", e);
|
||||
} finally {
|
||||
runBtn.disabled = false;
|
||||
if (totalTasks > 0) {
|
||||
console.info(`[Info] All tasks completed (${completedTasks}/${totalTasks})`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
8
samy.ps1
8
samy.ps1
@@ -474,7 +474,7 @@ $ConfirmPreference = 'None'
|
||||
# After module install, repair Event Log binding for legacy systems
|
||||
Repair-SVSMspEventLogBinding -EventSource "SVSMSP_Module" -TargetLog "SVSMSP Events"
|
||||
|
||||
Write-LogHybrid "Toolkit installation complete." "Success" "SVSModule" -LogToEvent
|
||||
Write-LogHybrid "Toolkit installation completed." "Success" "SVSModule" -LogToEvent
|
||||
}
|
||||
|
||||
|
||||
@@ -1475,8 +1475,8 @@ function Invoke-CleanupSVSMSP {
|
||||
# - Delete HKLM:\Software\SVS\Deployment (via Remove-SVSDeploymentRegKey)
|
||||
Install-SVSMSP -Cleanup
|
||||
|
||||
Write-LogHybrid "SVSMSP toolkit cleanup complete (module, repo, registry)." Success OffBoard -LogToEvent
|
||||
Send-Text $Context "SVSMSP toolkit cleanup complete."
|
||||
Write-LogHybrid "SVSMSP toolkit cleanup completed (module, repo, registry)." Success OffBoard -LogToEvent
|
||||
Send-Text $Context "SVSMSP toolkit cleanup completed."
|
||||
} else {
|
||||
throw "Install-SVSMSP function not found in current session."
|
||||
}
|
||||
@@ -1845,7 +1845,7 @@ function Install-DattoRMM {
|
||||
}
|
||||
}
|
||||
|
||||
Write-LogHybrid "Headless offboarding complete" Success OffBoard -LogToEvent
|
||||
Write-LogHybrid "Headless offboarding completed" Success OffBoard -LogToEvent
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user