fix(tui): stop re-asking action when launcher already picked Export/Import
Same missing-passthrough bug as the earlier tenant re-prompt fix, this time for -Action: Start-IntuneManagementTui.ps1 always showed the Export/Import/DeployCISBaseline/GenerateReports picker even when the launcher's menu items 1/2 had already decided it. Launcher now passes -Action through, TUI skips the prompt when supplied. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -84,7 +84,7 @@ if($Interactive)
|
||||
$tuiScript = Join-Path (Split-Path -Parent $PSScriptRoot) "Scripts/Private/Start-IntuneManagementTui.ps1"
|
||||
if(Test-Path $tuiScript)
|
||||
{
|
||||
$tuiResult = & $tuiScript -TenantId $TenantId
|
||||
$tuiResult = & $tuiScript -TenantId $TenantId -Action $Action
|
||||
if(-not $tuiResult) { Write-Host "No selection made. Exiting." -ForegroundColor Yellow; exit 0 }
|
||||
foreach($prop in $tuiResult.PSObject.Properties)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user