Update src/ui.ps1

This commit is contained in:
2026-01-25 00:27:30 -05:00
parent c61fb5e18b
commit 9624afac50

View File

@@ -117,7 +117,11 @@ $subHtml
function Get-ModuleVersionHtml {
$mod = Get-Module -ListAvailable -Name SVSMSP | Sort-Object Version -Descending | Select-Object -First 1
$branchDisplay = switch ($Script:SamyBranch.ToLower()) {
$branch = $Script:SamyBranch
if ([string]::IsNullOrWhiteSpace($branch)) { $branch = $Script:SamyGitBranch }
if ([string]::IsNullOrWhiteSpace($branch)) { $branch = 'beta' }
$branchDisplay = switch ($branch.ToLower()) {
'main' { 'Main / Stable' }
'beta' { 'Beta' }
default { $Script:SamyBranch }