Update samy.js

This commit is contained in:
2025-12-21 19:55:28 -05:00
parent 9df26a70de
commit 391a6d9a0b

32
samy.js
View File

@@ -597,6 +597,27 @@ async function triggerInstall() {
}
}
// X) 1Password (POST suboptions)
if (onePwCB && onePwCB.checked) {
// turning ON -> send only the selected sub-options
const sub = Array.from(
document.querySelectorAll(".sub-option-install1Password:checked")
).map((x) => x.value);
try {
await fetch("/install1Password", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ checkedValues: sub }),
});
logProgress("1Password", true);
} catch (e) {
logProgress("1Password", false);
console.error(e);
}
}
// X) Disable Animations (POST suboptions)
if (disableAnimCB && disableAnimCB.checked) {
// turning ON -> send only the selected sub-options
@@ -754,20 +775,11 @@ document.addEventListener("DOMContentLoaded", () => {
}
}
// Keep your Datto UI show/hide behavior
// if (taskId === "installDattoRMM") {
// const pwdBox = document.getElementById("PasswordContainer");
// const rmmBox = document.getElementById("dattoRmmContainer");
// if (pwdBox) pwdBox.style.display = checked ? "block" : "none";
// if (rmmBox) rmmBox.style.display = checked ? "block" : "none";
// }
}
masterCheckbox.addEventListener("change", updateVisibility);
updateVisibility();
});
// Tagline rotation
const taglines = [
"Fast deployments, no monkey business.",