From 0494fd82b782612895974f56fd369fa3f4a80697 Mon Sep 17 00:00:00 2001 From: Hiroki Terashima Date: Tue, 17 Dec 2024 16:23:54 -0800 Subject: [PATCH] refactor(TopBarComponent): Convert to standalone (#2024) --- src/app/teacher/classroom-monitor.module.ts | 6 +-- .../shared/top-bar/top-bar.component.html | 50 +++++++++-------- .../shared/top-bar/top-bar.component.spec.ts | 23 +------- .../shared/top-bar/top-bar.component.ts | 54 ++++++++++--------- src/messages.xlf | 28 ++++------ 5 files changed, 68 insertions(+), 93 deletions(-) diff --git a/src/app/teacher/classroom-monitor.module.ts b/src/app/teacher/classroom-monitor.module.ts index 548257a6193..b7df2a90d57 100644 --- a/src/app/teacher/classroom-monitor.module.ts +++ b/src/app/teacher/classroom-monitor.module.ts @@ -48,8 +48,7 @@ import { GradingNodeService } from '../../assets/wise5/services/gradingNodeServi StepItemComponent, StudentGradingComponent, StudentGradingToolsComponent, - ToolBarComponent, - TopBarComponent + ToolBarComponent ], imports: [ ComponentGradingComponent, @@ -74,7 +73,8 @@ import { GradingNodeService } from '../../assets/wise5/services/gradingNodeServi StepInfoComponent, StudentProgressComponent, StudentTeacherCommonModule, - TeacherSummaryDisplayComponent + TeacherSummaryDisplayComponent, + TopBarComponent ], providers: [GradingNodeService] }) diff --git a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html index a089d36f399..c2ea7edb4c2 100644 --- a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html +++ b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/shared/top-bar/top-bar.component.html @@ -8,28 +8,21 @@

{{ projectTitle }}  ({{ runInfo }}) - - + @if (canAuthorProject) { + + } +