Skip to content

Commit

Permalink
Fix URLIcon forcing debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelinux committed Jan 25, 2024
1 parent fa724bd commit cfd54e5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Src/Public/New-VeeamDiagram.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,16 @@ function New-VeeamDiagram {
'Backup-to-All' {'Backup Infrastructure Diagram'}
}

$URLIcon = $false

if ($EnableEdgeDebug) {
$EdgeDebug = @{style='filled'; color='red'}
$script:URLIcon = $true
$URLIcon = $true
} else {$EdgeDebug = @{style='invis'; color='red'}}

if ($EnableSubGraphDebug) {
$SubGraphDebug = @{style='dashed'; color='red'}
$script:URLIcon = $true
$URLIcon = $true
} else {$SubGraphDebug = @{style='invis'; color='gray'}}

$RootPath = Split-Path (Split-Path $PSScriptRoot -Parent) -Parent
Expand Down Expand Up @@ -546,6 +548,6 @@ function New-VeeamDiagram {
}
end {
#Export Diagram
Out-ADDiagram -GraphObj $Graph -ErrorDebug $EnableErrorDebug -Rotate $Rotate
Out-VbrDiagram -GraphObj $Graph -ErrorDebug $EnableErrorDebug -Rotate $Rotate
}
}

0 comments on commit cfd54e5

Please sign in to comment.