minor changes

This commit is contained in:
Roland Schneider
2021-10-08 11:39:26 +02:00
parent b993f5dee0
commit 77919b3bf8
7 changed files with 62 additions and 57 deletions

View File

@@ -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({

View File

@@ -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>

View File

@@ -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!"

View File

@@ -65,7 +65,7 @@ body{
min-height: 100%;
height: 100%;
background: url("~/assets/images/cutlercross-background.jpg");
background-repeat: repeat-y;
background-repeat: repeat;
}