Update src/ui.ps1
This commit is contained in:
@@ -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)"
|
||||||
|
|||||||
Reference in New Issue
Block a user