Update src/ui.ps1
This commit is contained in:
@@ -26,7 +26,7 @@ function Publish-Checkboxes {
|
||||
return $s
|
||||
}
|
||||
|
||||
$tasks = $Global:SamyTasks | Where-Object Page -EQ $Page
|
||||
$tasks = $Global:Samy_Tasks | Where-Object Page -EQ $Page
|
||||
|
||||
if (-not [string]::IsNullOrEmpty($Column)) {
|
||||
$tasks = $tasks | Where-Object Column -EQ $Column
|
||||
@@ -148,7 +148,7 @@ function Get-UIHtml {
|
||||
$devices = Publish-Checkboxes -Page 'devices' -Column ''
|
||||
|
||||
$tasksJson = @(
|
||||
$Global:SamyTasks | ForEach-Object {
|
||||
$Global:Samy_Tasks | ForEach-Object {
|
||||
[pscustomobject]@{
|
||||
id = [string]$_.Id
|
||||
handler = "/$([string]$_.Name)"
|
||||
|
||||
Reference in New Issue
Block a user