From 391a6d9a0ba8ba61e3047fccb9e67f605c9696a5 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sun, 21 Dec 2025 19:55:28 -0500 Subject: [PATCH] Update samy.js --- samy.js | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/samy.js b/samy.js index ecf313b..a080266 100644 --- a/samy.js +++ b/samy.js @@ -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.",