@for (event of currentEvents(); track event.id; let index = $index) {
-
@@ -46,24 +32,10 @@
{{ translations.playerEvents_currentEvents() }}
{{ translations.playerEvents_pastEvents() }}
- @for (event of pastEvents(); track event.id; let index = $index) {
-
0"
- [routerLink]="[event.id]"
- pRipple
- >
- {{
- event.date | date: 'fullDate' : undefined : locale()
- }}
-
- @if (getRegisteredTimeslotsCount(event); as timeslotCount) {
- {{ translations.playerEvents_registered({ timeslots: timeslotCount }) }}
- } @else {
- {{ translations.playerEvents_notRegistered() }}
- }
-
-
+ @for (event of pastEvents(); track event.id) {
+
}
@if (pastEvents().length === 0) {
@@ -77,3 +49,35 @@
{{ translations.playerEvents_pastEvents() }}
}
}
+
+
+ 0"
+ [routerLink]="[event.id]"
+ pRipple
+ >
+ {{
+ event.date | date: 'fullDate' : undefined : locale()
+ }}
+
+ @if (getRegisteredTimeslotsCount(event); as timeslotCount) {
+ {{ translations.playerEvents_registered({ timeslots: timeslotCount }) }}
+ } @else {
+ {{ translations.playerEvents_notRegistered() }}
+ }
+
+ @if (user()?.roles?.includes('admin')) {
+
+ }
+
+
diff --git a/src/client/src/app/components/player-events/player-events.component.ts b/src/client/src/app/components/player-events/player-events.component.ts
index a65412d..16d449f 100644
--- a/src/client/src/app/components/player-events/player-events.component.ts
+++ b/src/client/src/app/components/player-events/player-events.component.ts
@@ -2,8 +2,10 @@ import { CommonModule } from '@angular/common';
import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
import { toSignal } from '@angular/core/rxjs-interop';
import { RouterLink } from '@angular/router';
+import { ButtonModule } from 'primeng/button';
import { MessagesModule } from 'primeng/messages';
import { ProgressSpinnerModule } from 'primeng/progressspinner';
+import { TooltipModule } from 'primeng/tooltip';
import { map, timer } from 'rxjs';
import { hasActionFailed, isActionBusy } from '../../+state/action-state';
@@ -20,7 +22,14 @@ const dayMillis = 24 * 60 * 60 * 1000;
@Component({
selector: 'app-player-events',
standalone: true,
- imports: [CommonModule, MessagesModule, ProgressSpinnerModule, RouterLink],
+ imports: [
+ ButtonModule,
+ CommonModule,
+ MessagesModule,
+ ProgressSpinnerModule,
+ RouterLink,
+ TooltipModule,
+ ],
templateUrl: './player-events.component.html',
styleUrl: './player-events.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
diff --git a/src/client/src/app/components/users/user-dialog/user-dialog.component.html b/src/client/src/app/components/users/user-dialog/user-dialog.component.html
index 1c66130..70216c9 100644
--- a/src/client/src/app/components/users/user-dialog/user-dialog.component.html
+++ b/src/client/src/app/components/users/user-dialog/user-dialog.component.html
@@ -103,7 +103,7 @@
{{ translations.users_dialog_roles_title() }}
>
{{ translations.users_dialog_roles_title() }}
>
}