Improve validation

This commit is contained in:
Peter Maquiran
2021-07-01 16:23:47 +01:00
parent bb3c408595
commit a67ad10afe
11 changed files with 257 additions and 88 deletions
+26 -12
View File
@@ -1,5 +1,6 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '../guards/auth.guard';
import { HomeGuard } from '../guards/home.guard';
import { GroupMessagesPage } from '../pages/chat/group-messages/group-messages.page';
import { MessagesPage } from '../pages/chat/messages/messages.page';
@@ -46,7 +47,8 @@ const routes: Routes = [
loadChildren: ()=> import('../pages/events/attachments/attachments.module').then(m => m.AttachmentsPageModule)
},
]
],
},
{
path: 'attendees',
@@ -55,7 +57,8 @@ const routes: Routes = [
path:'',
loadChildren: ()=> import('../pages/events/attendees/attendees.module').then(m => m.AttendeesPageModule)
},
]
],
},
{
path: 'attendees-modal',
@@ -64,7 +67,8 @@ const routes: Routes = [
path:'',
loadChildren: ()=> import('../shared/event/attendee-modal/attendee-modal.module').then(m => m.AttendeeModalPageModule)
},
]
],
},
{
path: 'login',
@@ -73,7 +77,8 @@ const routes: Routes = [
path:'',
loadChildren: ()=> import('../pages/login/login.module').then(m => m.LoginPageModule)
},
]
],
},
{
path: 'agenda',
@@ -120,7 +125,8 @@ const routes: Routes = [
}
]
},
]
],
},
{
path: 'gabinete-digital',
@@ -207,7 +213,9 @@ const routes: Routes = [
}
]
}
]
],
},
{
path: 'search',
@@ -216,7 +224,8 @@ const routes: Routes = [
path:'',
loadChildren: ()=> import('../pages/search/search.module').then(m => m.SearchPageModule)
}
]
],
},
{
path: 'publications',
@@ -246,7 +255,8 @@ const routes: Routes = [
path: 'request-options',
loadChildren: () => import('../shared/popover/request-options/request-options.module').then( m => m.RequestOptionsPageModule)
},
]
],
},
{
path: 'chat',
@@ -290,7 +300,8 @@ const routes: Routes = [
]
},
]
],
},
{
path: 'document-detail',
@@ -299,14 +310,17 @@ const routes: Routes = [
path:'',
loadChildren: ()=> import('../modals/document-detail/document-detail.module').then(m => m.DocumentDetailPageModule)
},
]
],
},
]
],
canActivate: [AuthGuard]
},
{
path: '',
redirectTo: '/home/events',
pathMatch: 'full'
pathMatch: 'full',
}
];