minor changes
This commit is contained in:
@@ -26,27 +26,18 @@ const routes: Routes = [
|
||||
path: '',
|
||||
component: SecuredLayoutComponent,
|
||||
children: [
|
||||
{ path: 'home', component: HomeComponent , pathMatch: 'full'},
|
||||
{ path: 'home/:idTrainer/:idEventType', component: HomeComponent , pathMatch: 'full'},
|
||||
{ path: 'home', component: HomeComponent , pathMatch: 'full', canActivate: [AuthGuard]},
|
||||
{ path: 'home/:idTrainer/:idEventType', component: HomeComponent , pathMatch: 'full' ,canActivate: [AuthGuard]},
|
||||
{ path: 'logout', redirectTo: '/login' , pathMatch: 'full'},
|
||||
{ path: 'profile', component: ProfileComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'events', component: EventsComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'event-details/:idEvent', component: EventDetailsComponent, canActivate: [AuthGuard] , pathMatch: 'full' },
|
||||
{ path: 'registrations', component: RegistrationsComponent, canActivate: [AuthGuard] , pathMatch: 'full' },
|
||||
{ path: 'registration/:idRegistration', component: RegistrationComponent },
|
||||
{ path: 'password-change', component: PasswordChangeComponent }
|
||||
{ path: 'registration/:idRegistration', component: RegistrationComponent, canActivate: [AuthGuard] },
|
||||
{ path: 'password-change', component: PasswordChangeComponent, canActivate: [AuthGuard] }
|
||||
]
|
||||
},
|
||||
{ path: '**', redirectTo: '' }
|
||||
// { path: 'home', component: HomeComponent },
|
||||
// { path: '', redirectTo: '/home' , pathMatch: 'full'},
|
||||
// { path: 'login', component: LoginComponent },
|
||||
// { path: 'logout', redirectTo: '/login' , pathMatch: 'full'},
|
||||
// { path: 'profile', component: ProfileComponent, canActivate: [AuthGuard] },
|
||||
// { path: 'events', component: EventsComponent, canActivate: [AuthGuard] },
|
||||
// { path: 'event-details/:idEvent', component: EventDetailsComponent, canActivate: [AuthGuard] , pathMatch: 'full' },
|
||||
// { path: 'registrations', component: RegistrationsComponent, canActivate: [AuthGuard] , pathMatch: 'full' },
|
||||
// { path: 'registration/:idRegistration', component: RegistrationComponent, canActivate: [AuthGuard] , pathMatch: 'full' },
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
<div
|
||||
(click)="selectEvent()"
|
||||
class="event d-flex flex-direction-row py-1 px-1 mb-2 border-radius-1 small text-white {{getEventThemeClass()}}"
|
||||
title="Test Event 2"
|
||||
>
|
||||
<!-- [class.bg-dark]="maySelect()"-->
|
||||
<!-- [class.bg-primary]="isRegistered()"-->
|
||||
<!-- [class.bg-secondary]="isDisabled()"-->
|
||||
|
||||
<div class=" event-bar-container flex-grow-0 flex-shrink-0 d-flex" style="flex-basis: 10px;">
|
||||
<div class="event-bar flex-grow-1 flex-shrink-1 my-1 border-radius-1 bg-white" ></div>
|
||||
|
||||
@@ -88,6 +88,8 @@ export class EventDetailsComponent implements OnInit {
|
||||
message = "Már regisztárlt erre az edzésre!";
|
||||
break;
|
||||
case RegistrationErrors.MAX_SEAT_COUNT_EXCEEDED:
|
||||
message = "Már nem áll rendelkezésre több foglalható alkalom a bérletén!"
|
||||
break;
|
||||
case RegistrationErrors.TICKET_INSUFFICIENT:
|
||||
case RegistrationErrors.TICKET_NOT_FOUND:
|
||||
message = "Nem rendelkezik megfelelő bérlettel!"
|
||||
|
||||
@@ -65,7 +65,7 @@ body{
|
||||
min-height: 100%;
|
||||
height: 100%;
|
||||
background: url("~/assets/images/cutlercross-background.jpg");
|
||||
background-repeat: repeat-y;
|
||||
background-repeat: repeat;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user