From 21a510e1255fa359b0c933f6cf436200e853d986 Mon Sep 17 00:00:00 2001 From: Ben Stein <115497763+sei-bstein@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:32:15 -0400 Subject: [PATCH] v3.21.1 (#193) * Fix titling in admin, link game in Players to game center, fix display bugs with Admin -> Players * UPdate admin titling for readability --- .../src/app/admin/admin.module.ts | 24 ++++++------ .../player-names/player-names.component.html | 39 +++++++++++-------- .../player-names/player-names.component.ts | 9 +++-- .../src/app/api/player.service.ts | 2 +- .../admin-system-notifications.component.ts | 1 - 5 files changed, 41 insertions(+), 34 deletions(-) diff --git a/projects/gameboard-ui/src/app/admin/admin.module.ts b/projects/gameboard-ui/src/app/admin/admin.module.ts index 90c573e8..95a5497a 100644 --- a/projects/gameboard-ui/src/app/admin/admin.module.ts +++ b/projects/gameboard-ui/src/app/admin/admin.module.ts @@ -2,9 +2,8 @@ // Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information. import { CommonModule } from '@angular/common'; -import { inject, NgModule } from '@angular/core'; -import { FormsModule } from '@angular/forms'; -import { ActivatedRoute, RouterModule } from '@angular/router'; +import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; import { ScoreboardModule } from '@/scoreboard/scoreboard.module'; import { SponsorsModule } from '@/sponsors/sponsors.module'; @@ -155,7 +154,6 @@ import { GameIdResolver } from './resolvers/game-id.resolver'; ], imports: [ CommonModule, - FormsModule, EventHorizonModule, RouterModule.forChild([ { @@ -192,22 +190,22 @@ import { GameIdResolver } from './resolvers/game-id.resolver'; { path: "settings", component: PracticeSettingsComponent }, ] }, - { path: 'registrar/sponsors', component: SponsorBrowserComponent, title: "Admin | Sponsors" }, - { path: 'registrar/users', component: UserRegistrarComponent, title: "Admin | Users" }, - { path: 'registrar/players', component: PlayerNamesComponent }, - { path: 'observer/challenges/:id', component: ChallengeObserverComponent, title: "Admin | Observe" }, + { path: 'registrar/sponsors', component: SponsorBrowserComponent, title: "Sponsors | Admin" }, + { path: 'registrar/users', component: UserRegistrarComponent, title: "Users | Admin" }, + { path: 'registrar/players', component: PlayerNamesComponent, title: "Players | Admin" }, + { path: 'observer/challenges/:id', component: ChallengeObserverComponent, title: "Observe | Admin" }, { path: 'observer/teams/:id', component: TeamObserverComponent }, - { path: 'overview', component: AdminOverviewComponent, title: "Admin | Overview" }, - { path: "permissions", component: AdminRolesComponent }, + { path: 'overview', component: AdminOverviewComponent, title: "Live | Admin " }, + { path: "permissions", component: AdminRolesComponent, title: "Permissions | Admin" }, { path: 'report/users', component: UserReportComponent }, { path: 'report/sponsors', component: PlayerSponsorReportComponent }, { path: 'report/challenges', component: ChallengeReportComponent }, { path: 'report/feedback', component: FeedbackReportComponent }, { path: 'report/support', component: SupportReportLegacyComponent }, { path: 'report/participation', component: ParticipationReportComponent }, - { path: "notifications", component: AdminSystemNotificationsComponent }, - { path: "support/settings", component: SupportSettingsComponent, title: "Admin | Support" }, - { path: 'support', component: ChallengeBrowserComponent } + { path: "notifications", component: AdminSystemNotificationsComponent, title: "System Notifications | Admin" }, + { path: "support/settings", component: SupportSettingsComponent, title: "Support | Admin" }, + { path: 'support', component: ChallengeBrowserComponent, title: "Challenges | Admin" } ] }, ]), diff --git a/projects/gameboard-ui/src/app/admin/player-names/player-names.component.html b/projects/gameboard-ui/src/app/admin/player-names/player-names.component.html index f650cb0a..062d2de0 100644 --- a/projects/gameboard-ui/src/app/admin/player-names/player-names.component.html +++ b/projects/gameboard-ui/src/app/admin/player-names/player-names.component.html @@ -41,9 +41,11 @@