Update samy.js
This commit is contained in:
7
samy.js
7
samy.js
@@ -457,7 +457,6 @@ async function triggerInstall() {
|
|||||||
// 1. DattoRMM first
|
// 1. DattoRMM first
|
||||||
const dattoCB = document.getElementById("installDattoRMM");
|
const dattoCB = document.getElementById("installDattoRMM");
|
||||||
if (dattoCB && dattoCB.checked) {
|
if (dattoCB && dattoCB.checked) {
|
||||||
try {
|
|
||||||
const sub = Array.from(
|
const sub = Array.from(
|
||||||
document.querySelectorAll(".sub-option-installDattoRMM:checked")
|
document.querySelectorAll(".sub-option-installDattoRMM:checked")
|
||||||
).map((x) => x.value);
|
).map((x) => x.value);
|
||||||
@@ -465,6 +464,11 @@ async function triggerInstall() {
|
|||||||
const uid = dropdown?.value;
|
const uid = dropdown?.value;
|
||||||
const name = dropdown?.selectedOptions?.[0]?.text || "Datto";
|
const name = dropdown?.selectedOptions?.[0]?.text || "Datto";
|
||||||
|
|
||||||
|
if (!uid) {
|
||||||
|
alert("Please select a Datto RMM site before running.");
|
||||||
|
logProgress("Install DattoRMM (no site selected)", false);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
await fetch("/installDattoRMM", {
|
await fetch("/installDattoRMM", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
@@ -476,6 +480,7 @@ async function triggerInstall() {
|
|||||||
console.error(e);
|
console.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 2. SVSMSP module second
|
// 2. SVSMSP module second
|
||||||
const svsCB = document.getElementById("installSVSMSPModule");
|
const svsCB = document.getElementById("installSVSMSPModule");
|
||||||
|
|||||||
Reference in New Issue
Block a user