1
0
Fork 0
mirror of https://codeberg.org/beerbrawl/beerbrawl.git synced 2024-09-22 21:20:52 +02:00

feat(#3): removed unused code

This commit is contained in:
Moritz Kepplinger 2024-07-04 15:00:48 +02:00
parent 15eec6bb89
commit 06d726f008

View file

@ -44,26 +44,6 @@ export class SidebarComponent {
),
);
isOverviewPage = computed(() => {
return this.isTournamentPath() && this.url()!.length === 3;
});
isQualificationPhasePage = computed(() => {
return this.isTournamentPath() && this.url()![3] === 'qualification-phase';
});
isKoPhasePage = computed(() => {
return this.isTournamentPath() && this.url()![3] === 'ko-phase';
});
isTablesPage = computed(() => {
return this.isTournamentPath() && this.url()![3] === 'tables';
});
isTeamsPage = computed(() => {
return this.isTournamentPath() && this.url()![3] === 'teams';
});
constructor() {
this.username = this.authService.getUsername()!;
}
@ -73,5 +53,3 @@ export class SidebarComponent {
this.router.navigate(['/']);
}
}
type CurrentTournamentPage = 'overview' | 'qualificationPhase' | 'koPhase' | 'teams' | 'tables';