feat: Update sidebar navigation and add dashboard component
- Changed display name for the main dashboard in sidebar from 'Dashboards' to 'Hlavná stránka'. - Removed commented-out children routes for dashboards and frontend pages in sidebar. - Added new dashboard component and its routing. - Introduced logout functionality with a dedicated logout component. - Updated authentication routes to include logout path. - Modified callback component to navigate to the dashboard upon successful login. - Enhanced authentication service to handle user profile loading more effectively.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { BlankComponent } from './layouts/blank/blank.component';
|
||||
import { FullComponent } from './layouts/full/full.component';
|
||||
import { authGuard } from './app.route.guard';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
@@ -17,13 +18,14 @@ export const routes: Routes = [
|
||||
// loadChildren: () =>
|
||||
// import('./pages/pages.routes').then((m) => m.PagesRoutes),
|
||||
// },
|
||||
// {
|
||||
// path: 'dashboards',
|
||||
// loadChildren: () =>
|
||||
// import('../../../theme/packages/main/src/app/pages/dashboards/dashboards.routes').then(
|
||||
// (m) => m.DashboardsRoutes
|
||||
// ),
|
||||
// },
|
||||
{
|
||||
path: 'dashboard',
|
||||
canActivate: [authGuard],
|
||||
loadChildren: () =>
|
||||
import('./pages/dashboard/dashboard.routes').then(
|
||||
(m) => m.DashboardsRoutes
|
||||
),
|
||||
},
|
||||
// {
|
||||
// path: 'forms',
|
||||
// loadChildren: () =>
|
||||
|
||||
Reference in New Issue
Block a user