From a5935b889ba6409d0309fb374b17dabd5eda3e65 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Sat, 20 Dec 2025 18:39:10 -0500 Subject: [PATCH] Update samy.ps1 --- samy.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samy.ps1 b/samy.ps1 index 7673334..09aa0e5 100644 --- a/samy.ps1 +++ b/samy.ps1 @@ -899,6 +899,7 @@ function Get-UIHtml { $onboardLeft = Publish-Checkboxes -Page 'onboard' -Column 'left' $onboardRight = Publish-Checkboxes -Page 'onboard' -Column 'right' $offboard = Publish-Checkboxes -Page 'offboard' -Column '' + $devices = Publish-Checkboxes -Page 'devices' -Column '' # # 2) Build the JS tasks array once (this is the only dynamic JS piece) @@ -961,8 +962,7 @@ function Get-UIHtml { $html = $html.Replace('{{onboardLeftColumn}}', $onboardLeft) $html = $html.Replace('{{onboardRightColumn}}', $onboardRight) $html = $html.Replace('{{offboardCheckboxes}}', $offboard) - $html = $html.Replace('{{tweaksCheckboxes}}', '') - $html = $html.Replace('{{appsCheckboxes}}', '') + $html = $html.Replace('{{devicesCheckboxes}}', $devices) $html = $html.Replace('{{tasksJsAll}}', $tasksJsAll) $html = $html.Replace('{{defaultPage}}', $Page) @@ -1902,7 +1902,7 @@ function Install-DattoRMM { } # ---- Serve UI pages ---- - if ($path -in @('', 'onboard', 'offboard')) { + if ($path -in @('', 'onboard', 'offboard', 'devices')) { $page = if ($path -eq '') { 'onboard' } else { $path } $html = Get-UIHtml -Page $page Send-HTML $Context $html