pages/variables.ps1
New-UDPage -Name "Variables" -Endpoint { New-UDHelmet -Content { New-UDHtmlTag -Tag 'title' -Content { "Universal Automation / Variables" } } New-VariableGrid -isEdit $true New-UDButton -Text "New Variable" -OnClick { Show-UDModal -Content { New-UDInput -Title "Add New Variable" -Endpoint { param( [Parameter(Mandatory)] $Name, [String] $Value = "", [Bool] $isSecret ) if($null -eq $isSecret) { New-UAVariable -Name $Name -Value $Value } else { New-UAVariable -Name $Name -Value $Value -Secret } Hide-UDModal Sync-UDElement -Id "VariablesGrid" -Broadcast } } } -Icon plus_square } |