fix(admin): Manage backups button navigates via the real SPA router

The admin overview Manage backups action called window.librePortalSPA,
a global that is never assigned, so the optional-chaining call silently
no-op'd. The router is window.spaClean; point the call at it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-28 16:12:48 +01:00
parent 00de75ffc3
commit f0dc73e332

View File

@ -55,7 +55,7 @@ class AdminOverview {
go(where) {
if (where === 'backup') {
window.librePortalSPA?.navigate('/backup', true);
window.spaClean?.navigate('/backup', true);
} else if (where === 'ssh' || where === 'security' || where === 'system') {
const target = where === 'ssh' ? 'ssh-access' : where;
window.history.pushState({}, '', window.adminPath(target));