Update samy.js

This commit is contained in:
2025-12-21 19:43:22 -05:00
parent c72f6c3015
commit 6ac08e1839

View File

@@ -529,10 +529,13 @@ async function triggerInstall() {
const svsCB = document.getElementById("installSVSMSPModule"); const svsCB = document.getElementById("installSVSMSPModule");
const renameCB = document.getElementById("renameComputer"); const renameCB = document.getElementById("renameComputer");
const newNameInput = document.getElementById("txtNewComputerName"); const newNameInput = document.getElementById("txtNewComputerName");
const onePwCB = document.getElementById("install1Password");
const disableAnimCB = document.getElementById("disableAnimations");
// Standard tasks = all tasks except special-case ones // Standard tasks = all tasks except special-case ones
const checkedTasks = tasks.filter((t) => { const checkedTasks = tasks.filter((t) => {
if (["installDattoRMM", "installSVSMSPModule", "renameComputer"].includes(t.id)) return false; if (["installDattoRMM", "installSVSMSPModule", "renameComputer", "install1Password", "disableAnimations"].includes(t.id)) return false;
const cb = document.getElementById(t.id); const cb = document.getElementById(t.id);
return cb && cb.checked; return cb && cb.checked;
}); });
@@ -541,6 +544,9 @@ async function triggerInstall() {
let specialTasks = 0; let specialTasks = 0;
if (dattoCB && dattoCB.checked) specialTasks++; if (dattoCB && dattoCB.checked) specialTasks++;
if (svsCB && svsCB.checked) specialTasks++; if (svsCB && svsCB.checked) specialTasks++;
if (onePwCB && onePwCB.checked) specialTasks++;
if (disableAnimCB && disableAnimCB.checked) specialTasks++;
const extraTasks = (renameCB && renameCB.checked) ? 1 : 0; const extraTasks = (renameCB && renameCB.checked) ? 1 : 0;
const total = checkedTasks.length + specialTasks + extraTasks; const total = checkedTasks.length + specialTasks + extraTasks;