diff --git a/TGBeta.ps1 b/TGBeta.ps1 index c401ef5..79d1932 100644 --- a/TGBeta.ps1 +++ b/TGBeta.ps1 @@ -803,11 +803,29 @@ function GetHtmlContent { function toggleLeftColumnCheckboxes(selectAllCheckbox) { const leftCheckboxes = document.querySelectorAll('#leftColumn input[type="checkbox"]:not(#selectAllLeftCheckbox)'); + const dattoRMMCheckbox = document.getElementById('installDattoRMMCheckbox'); + const optionsContainer = document.getElementById('dattoRMMOptionsContainer'); + const n8nPasswordContainer = document.getElementById('n8nPasswordContainer'); + const dattoRMMContainer = document.getElementById('DattoRMMContainer'); + + // Toggle all checkboxes leftCheckboxes.forEach(checkbox => { checkbox.checked = selectAllCheckbox.checked; }); + + // Check if "Install DattoRMM" is selected + if (dattoRMMCheckbox.checked) { + optionsContainer.style.display = 'block'; + n8nPasswordContainer.style.display = 'block'; + dattoRMMContainer.style.display = 'block'; + } else { + optionsContainer.style.display = 'none'; + n8nPasswordContainer.style.display = 'none'; + dattoRMMContainer.style.display = 'none'; + } } + function updateSelectAllonboard() { const selectAllCheckbox = document.getElementById('selectAllOnboardCheckbox'); const checkboxes = document