diff --git a/typescript/frontend-marios2/src/components/login.tsx b/typescript/frontend-marios2/src/components/login.tsx index 99c8f5014..06e8d7bb9 100644 --- a/typescript/frontend-marios2/src/components/login.tsx +++ b/typescript/frontend-marios2/src/components/login.tsx @@ -88,18 +88,18 @@ function Login() { setAccessToSodistore(response.data.accessToSodistoreMax); setAccessToSodistoreGrid(response.data.accessToSodistoreGrid); setAccessToSodistorePro(response.data.accessToSodistorePro); - if (response.data.accessToSalimax) { - navigate(routes.installations); - } else if (response.data.accessToSalidomo) { - navigate(routes.salidomo_installations); - } else if (response.data.accessToSodistoreMax) { - navigate(routes.sodistore_installations); - } else if (response.data.accessToSodistoreGrid) { - navigate(routes.sodistoregrid_installations); + if (response.data.accessToSodioHome) { + navigate(routes.sodiohome_installations); } else if (response.data.accessToSodistorePro) { navigate(routes.sodistorepro_installations); + } else if (response.data.accessToSodistoreGrid) { + navigate(routes.sodistoregrid_installations); + } else if (response.data.accessToSodistoreMax) { + navigate(routes.sodistore_installations); + } else if (response.data.accessToSalimax) { + navigate(routes.installations); } else { - navigate(routes.sodiohome_installations); + navigate(routes.salidomo_installations); } } }) diff --git a/typescript/frontend-marios2/src/content/dashboards/Tree/Information.tsx b/typescript/frontend-marios2/src/content/dashboards/Tree/Information.tsx index 8a07848b3..6dde96e5f 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Tree/Information.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Tree/Information.tsx @@ -59,13 +59,13 @@ function TreeInformation(props: TreeInformationProps) { fetchAllInstallations } = installationContext; - const [product, setProduct] = useState('Salimax'); + const [product, setProduct] = useState('SodistoreHome'); const handleChangeInstallationChoice = (e) => { setProduct(e.target.value); // Directly update the product state }; - const ProductTypes = ['Salimax', 'Salidomo', 'SodistoreHome', 'SodistoreMax', 'SodistoreGrid', 'SodistorePro']; + const ProductTypes = ['SodistoreHome', 'SodistorePro', 'SodistoreGrid', 'SodistoreMax', 'Salimax', 'Salidomo']; const ProductDisplayNames: Record = { 'SodistoreHome': 'Sodistore Home', 'SodistoreMax': 'Sodistore Max', diff --git a/typescript/frontend-marios2/src/layouts/SidebarLayout/Sidebar/SidebarMenu/index.tsx b/typescript/frontend-marios2/src/layouts/SidebarLayout/Sidebar/SidebarMenu/index.tsx index 402a44b25..61304f5ad 100644 --- a/typescript/frontend-marios2/src/layouts/SidebarLayout/Sidebar/SidebarMenu/index.tsx +++ b/typescript/frontend-marios2/src/layouts/SidebarLayout/Sidebar/SidebarMenu/index.tsx @@ -186,86 +186,6 @@ function SidebarMenu() { } > - {accessToSalimax && ( - - - - - - )} - {accessToSodistore && ( - - - - - - )} - - {accessToSalidomo && ( - - - - - - )} - - {accessToSodistoreGrid && ( - - - - - - )} - {accessToSodiohome && ( @@ -307,6 +227,87 @@ function SidebarMenu() { )} + + {accessToSodistoreGrid && ( + + + + + + )} + + {accessToSodistore && ( + + + + + + )} + + {accessToSalimax && ( + + + + + + )} + + {accessToSalidomo && ( + + + + + + )}