Improve backup install missing extension routing

Only opened the "browse" page instead of routing to the "extension" tab of the "browse" page
This commit is contained in:
schroda
2025-07-23 01:12:13 +02:00
parent cc4ab2e0dd
commit 39d34af9bc
5 changed files with 19 additions and 16 deletions

View File

@@ -38,6 +38,7 @@ import { ServerSettings } from '@/modules/settings/Settings.types.ts';
import { AppRoutes } from '@/modules/core/AppRoute.constants.ts';
import { getErrorMessage } from '@/lib/HelperFunctions.ts';
import { useAppTitle } from '@/modules/navigation-bar/hooks/useAppTitle.ts';
import { BrowseTab } from '@/modules/browse/Browse.types.ts';
type BackupSettingsType = Pick<ServerSettings, 'backupPath' | 'backupTime' | 'backupInterval' | 'backupTTL'>;
@@ -337,7 +338,7 @@ export function Backup() {
<Button
onClick={closeInvalidBackupDialog}
component={Link}
to={AppRoutes.browse.path}
to={AppRoutes.browse.path(BrowseTab.EXTENSIONS)}
autoFocus={!!validationResult?.missingSources.length}
variant={validationResult?.missingSources.length ? 'contained' : 'text'}
>