Update samy.ps1
This commit is contained in:
6
samy.ps1
6
samy.ps1
@@ -899,6 +899,7 @@ function Get-UIHtml {
|
|||||||
$onboardLeft = Publish-Checkboxes -Page 'onboard' -Column 'left'
|
$onboardLeft = Publish-Checkboxes -Page 'onboard' -Column 'left'
|
||||||
$onboardRight = Publish-Checkboxes -Page 'onboard' -Column 'right'
|
$onboardRight = Publish-Checkboxes -Page 'onboard' -Column 'right'
|
||||||
$offboard = Publish-Checkboxes -Page 'offboard' -Column ''
|
$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)
|
# 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('{{onboardLeftColumn}}', $onboardLeft)
|
||||||
$html = $html.Replace('{{onboardRightColumn}}', $onboardRight)
|
$html = $html.Replace('{{onboardRightColumn}}', $onboardRight)
|
||||||
$html = $html.Replace('{{offboardCheckboxes}}', $offboard)
|
$html = $html.Replace('{{offboardCheckboxes}}', $offboard)
|
||||||
$html = $html.Replace('{{tweaksCheckboxes}}', '')
|
$html = $html.Replace('{{devicesCheckboxes}}', $devices)
|
||||||
$html = $html.Replace('{{appsCheckboxes}}', '')
|
|
||||||
$html = $html.Replace('{{tasksJsAll}}', $tasksJsAll)
|
$html = $html.Replace('{{tasksJsAll}}', $tasksJsAll)
|
||||||
$html = $html.Replace('{{defaultPage}}', $Page)
|
$html = $html.Replace('{{defaultPage}}', $Page)
|
||||||
|
|
||||||
@@ -1902,7 +1902,7 @@ function Install-DattoRMM {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ---- Serve UI pages ----
|
# ---- Serve UI pages ----
|
||||||
if ($path -in @('', 'onboard', 'offboard')) {
|
if ($path -in @('', 'onboard', 'offboard', 'devices')) {
|
||||||
$page = if ($path -eq '') { 'onboard' } else { $path }
|
$page = if ($path -eq '') { 'onboard' } else { $path }
|
||||||
$html = Get-UIHtml -Page $page
|
$html = Get-UIHtml -Page $page
|
||||||
Send-HTML $Context $html
|
Send-HTML $Context $html
|
||||||
|
|||||||
Reference in New Issue
Block a user