Update samy.js
This commit is contained in:
8
samy.js
8
samy.js
@@ -529,10 +529,13 @@ async function triggerInstall() {
|
||||
const svsCB = document.getElementById("installSVSMSPModule");
|
||||
const renameCB = document.getElementById("renameComputer");
|
||||
const newNameInput = document.getElementById("txtNewComputerName");
|
||||
const onePwCB = document.getElementById("install1Password");
|
||||
const disableAnimCB = document.getElementById("disableAnimations");
|
||||
|
||||
|
||||
// Standard tasks = all tasks except special-case ones
|
||||
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);
|
||||
return cb && cb.checked;
|
||||
});
|
||||
@@ -541,6 +544,9 @@ async function triggerInstall() {
|
||||
let specialTasks = 0;
|
||||
if (dattoCB && dattoCB.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 total = checkedTasks.length + specialTasks + extraTasks;
|
||||
|
||||
Reference in New Issue
Block a user