use new location

This commit is contained in:
Fabian Freund
2026-03-23 13:47:21 +01:00
parent 17cd456097
commit 296226760f
13 changed files with 404 additions and 125 deletions
+2 -2
View File
@@ -1297,7 +1297,7 @@ mixin $ProfileBackupListRoute on GoRouteData {
mixin $RestoreProfileRoute on GoRouteData {
static RestoreProfileRoute _fromState(GoRouterState state) =>
RestoreProfileRoute(
backupFilePath: state.uri.queryParameters['backup-file-path']!,
backupFileUri: state.uri.queryParameters['backup-file-uri']!,
);
RestoreProfileRoute get _self => this as RestoreProfileRoute;
@@ -1305,7 +1305,7 @@ mixin $RestoreProfileRoute on GoRouteData {
@override
String get location => GoRouteData.$location(
'/profiles/restore',
queryParams: {'backup-file-path': _self.backupFilePath},
queryParams: {'backup-file-uri': _self.backupFileUri},
);
@override