Rework onboarding
Close #435 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -110,6 +110,20 @@ const router = new Router({
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ProviderValidation" */ "@/views/User/ProviderValidation.vue"),
|
||||
},
|
||||
{
|
||||
path: "/welcome/:step?",
|
||||
name: RouteName.WELCOME_SCREEN,
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "WelcomeScreen" */ "@/views/User/SettingsOnboard.vue"),
|
||||
meta: { requiredAuth: true },
|
||||
props: (route) => {
|
||||
const step = Number.parseInt(route.params.step, 10);
|
||||
if (Number.isNaN(step)) {
|
||||
return 1;
|
||||
}
|
||||
return { step };
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/404",
|
||||
name: RouteName.PAGE_NOT_FOUND,
|
||||
|
||||
@@ -17,6 +17,7 @@ enum GlobalRouteName {
|
||||
GLOSSARY = "GLOSSARY",
|
||||
INTERACT = "INTERACT",
|
||||
RULES = "RULES",
|
||||
WELCOME_SCREEN = "WELCOME_SCREEN",
|
||||
}
|
||||
|
||||
// Hack to merge enums
|
||||
|
||||
Reference in New Issue
Block a user