Update samy.ps1

This commit is contained in:
2025-12-20 18:39:10 -05:00
parent 06ae8f4c36
commit a5935b889b

View File

@@ -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