Update samy.js
This commit is contained in:
32
samy.js
32
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)
|
// X) Disable Animations (POST suboptions)
|
||||||
if (disableAnimCB && disableAnimCB.checked) {
|
if (disableAnimCB && disableAnimCB.checked) {
|
||||||
// turning ON -> send only the selected sub-options
|
// 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);
|
masterCheckbox.addEventListener("change", updateVisibility);
|
||||||
updateVisibility();
|
updateVisibility();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Tagline rotation
|
// Tagline rotation
|
||||||
const taglines = [
|
const taglines = [
|
||||||
"Fast deployments, no monkey business.",
|
"Fast deployments, no monkey business.",
|
||||||
|
|||||||
Reference in New Issue
Block a user