fix(ui,install): Models page couldn't scroll to installed models; report install result in original window
Models.jsx clipped the whole card with overflow:hidden while only the "Available Models" section (never visible when the hardware-recommended list alone filled the card) had its own scroll — the installed-models list was unreachable with no scrollbar. The whole card now scrolls as one region instead. install-windows.ps1's original (non-elevated) window printed "Requesting administrator privileges..." and exited immediately, so all real progress and the "installed!" banner only ever appeared in the separate elevated window — making the original window look like it silently quit. It now waits (-Wait -PassThru) and reports success/failure itself. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+14
-2
@@ -82,8 +82,20 @@ $IsAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIden
|
||||
[Security.Principal.WindowsBuiltInRole]::Administrator)
|
||||
if (-not $IsAdmin) {
|
||||
Write-Host "Requesting administrator privileges..." -ForegroundColor Yellow
|
||||
Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs
|
||||
exit
|
||||
# -Wait -PassThru so this window blocks until the elevated install finishes
|
||||
# and can report success/failure itself - without it, this window just says
|
||||
# "Requesting..." and exits immediately, while all real progress (and the
|
||||
# "installed!" banner) happens in the separate elevated window, making the
|
||||
# original window look like it silently quit.
|
||||
$proc = Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`" -OwnsWindow" -Verb RunAs -Wait -PassThru
|
||||
Write-Host ""
|
||||
if ($proc.ExitCode -eq 0) {
|
||||
Write-Host " NexusOS installed successfully." -ForegroundColor Green
|
||||
Write-Host " Open a NEW terminal and run 'ncp help', or double-click the NexusOS desktop shortcut." -ForegroundColor White
|
||||
} else {
|
||||
Write-Host " Install did not finish (exit code $($proc.ExitCode)). Check the elevated window for errors." -ForegroundColor Red
|
||||
}
|
||||
exit $proc.ExitCode
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
|
||||
Reference in New Issue
Block a user