controls/tag-create-modal.ps1
function New-UDCreateTagModal { Show-UDModal -Content { New-UDPageHeader -Text ("Creating new Tag") New-UDParagraph -Text "Specify a new Tag Name and Color Value" New-UDInput -Id "VariableCreateInput" -Endpoint { param ( [Parameter(Mandatory = $true)] $TagName, [Parameter(Mandatory = $true)] $TagColor, [Parameter(Mandatory = $false)] $TagDescription ) New-UATag -Name $TagName -Color $TagColor -Description $TagDescription Sync-UDElement -Id "TagGrid" -Broadcast Hide-UDModal } } } |