feat(app): register the saved-schedule list under Settings at /schedules
This commit is contained in:
@@ -12,6 +12,7 @@ String _routePath(AppRoute route) => switch (route.kind) {
|
||||
AppRouteKind.search => '/search',
|
||||
AppRouteKind.settings => '/settings',
|
||||
AppRouteKind.templates => _templatesPath(route),
|
||||
AppRouteKind.schedules => '/schedules',
|
||||
};
|
||||
|
||||
String _pipelinePath(AppRoute route) {
|
||||
@@ -91,6 +92,7 @@ AppRoute _parseRoute(String location) {
|
||||
'search' when segments.length == 1 => AppRoute.search,
|
||||
'settings' => _settingsRoute(segments),
|
||||
'templates' => _templatesRoute(segments),
|
||||
'schedules' when segments.length == 1 => AppRoute.schedules,
|
||||
_ => AppRoute.pipelines,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user