diff --git a/src/app/teacher/grading-common.module.ts b/src/app/teacher/grading-common.module.ts index 0437ce757a2..2ecdfd309bf 100644 --- a/src/app/teacher/grading-common.module.ts +++ b/src/app/teacher/grading-common.module.ts @@ -19,6 +19,7 @@ import { NavItemProgressComponent } from '../classroom-monitor/nav-item-progress imports: [ ComponentGradingModule, EditComponentScoreComponent, + GradingEditComponentMaxScoreComponent, IntersectionObserverModule, StatusIconComponent, StudentTeacherCommonModule, @@ -28,7 +29,6 @@ import { NavItemProgressComponent } from '../classroom-monitor/nav-item-progress declarations: [ EditComponentAnnotationsComponent, EditComponentCommentComponent, - GradingEditComponentMaxScoreComponent, NavItemProgressComponent, WorkgroupComponentGradingComponent, WorkgroupInfoComponent, diff --git a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/edit-component-annotations/edit-component-annotations.component.html b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/edit-component-annotations/edit-component-annotations.component.html index 5b7d0616cfc..cce232dba77 100644 --- a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/edit-component-annotations/edit-component-annotations.component.html +++ b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/edit-component-annotations/edit-component-annotations.component.html @@ -20,7 +20,7 @@ [componentId]="componentId" [disabled]="isDisabled || !canAuthorProject" [nodeId]="nodeId" - > + />
+ />
+ />
{ beforeEach(() => { TestBed.configureTestingModule({ - declarations: [GradingEditComponentMaxScoreComponent], - schemas: [NO_ERRORS_SCHEMA], - imports: [StudentTeacherCommonServicesModule], - providers: [ - CopyNodesService, - TeacherProjectService, - provideHttpClient(withInterceptorsFromDi()), - provideHttpClientTesting() - ] + imports: [GradingEditComponentMaxScoreComponent, StudentTeacherCommonServicesModule], + providers: [TeacherProjectService, provideHttpClient(withInterceptorsFromDi())] }); projectService = TestBed.inject(TeacherProjectService); fixture = TestBed.createComponent(GradingEditComponentMaxScoreComponent); diff --git a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/grading-edit-component-max-score/grading-edit-component-max-score.component.ts b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/grading-edit-component-max-score/grading-edit-component-max-score.component.ts index b1d565ee35a..51834f69e0d 100644 --- a/src/assets/wise5/classroomMonitor/classroomMonitorComponents/grading-edit-component-max-score/grading-edit-component-max-score.component.ts +++ b/src/assets/wise5/classroomMonitor/classroomMonitorComponents/grading-edit-component-max-score/grading-edit-component-max-score.component.ts @@ -2,9 +2,15 @@ import { Component, Input, ViewEncapsulation } from '@angular/core'; import { Subject, Subscription } from 'rxjs'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; import { TeacherProjectService } from '../../../services/teacherProjectService'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { MatInputModule } from '@angular/material/input'; @Component({ + imports: [CommonModule, FormsModule, MatFormFieldModule, MatInputModule], selector: 'grading-edit-component-max-score', + standalone: true, styles: [ ` /* TODO(mdc-migration): The following rule targets internal classes of form-field that may no longer apply for the MDC version. */ @@ -22,7 +28,7 @@ export class GradingEditComponentMaxScoreComponent { maxScore: number; maxScoreChanged: Subject = new Subject(); @Input() nodeId: string; - subscriptions: Subscription = new Subscription(); + private subscriptions: Subscription = new Subscription(); constructor(private projectService: TeacherProjectService) {}