Update src/ui.ps1

This commit is contained in:
2026-02-16 19:04:14 -05:00
parent 827335fb92
commit 503cdaacc4

View File

@@ -26,7 +26,7 @@ function Publish-Checkboxes {
return $s return $s
} }
$tasks = $Global:SamyTasks | Where-Object Page -EQ $Page $tasks = $Global:Samy_Tasks | Where-Object Page -EQ $Page
if (-not [string]::IsNullOrEmpty($Column)) { if (-not [string]::IsNullOrEmpty($Column)) {
$tasks = $tasks | Where-Object Column -EQ $Column $tasks = $tasks | Where-Object Column -EQ $Column
@@ -148,7 +148,7 @@ function Get-UIHtml {
$devices = Publish-Checkboxes -Page 'devices' -Column '' $devices = Publish-Checkboxes -Page 'devices' -Column ''
$tasksJson = @( $tasksJson = @(
$Global:SamyTasks | ForEach-Object { $Global:Samy_Tasks | ForEach-Object {
[pscustomobject]@{ [pscustomobject]@{
id = [string]$_.Id id = [string]$_.Id
handler = "/$([string]$_.Name)" handler = "/$([string]$_.Name)"