Fix routing

This commit is contained in:
Daniel Ponte 2024-11-22 15:13:34 -05:00
parent cb46c72a0f
commit 78f4defdc2

View file

@ -12,11 +12,13 @@ import { AuthGuard } from './auth.guard';
export const routes: Routes = [ export const routes: Routes = [
{ path: 'login', component: LoginComponent }, { path: 'login', component: LoginComponent },
{ path: '', component: HomeComponent, canActivate: [AuthGuard] }, { path: '', canActivateChild: [AuthGuard], children: [
{ path: 'talkgroups', component: TalkgroupsComponent }, { path: '', component: HomeComponent, pathMatch: 'full' },
{ path: 'talkgroups/import', component: ImportComponent }, { path: 'talkgroups', component: TalkgroupsComponent },
{ path: 'talkgroups/:sys/:tg', component: TalkgroupRecordComponent }, { path: 'talkgroups/import', component: ImportComponent },
{ path: 'calls', component: CallsComponent }, { path: 'talkgroups/:sys/:tg', component: TalkgroupRecordComponent },
{ path: 'incidents', component: IncidentsComponent }, { path: 'calls', component: CallsComponent },
{ path: 'alerts', component: AlertsComponent }, { path: 'incidents', component: IncidentsComponent },
{ path: 'alerts', component: AlertsComponent },
]},
]; ];