diff --git a/src/app/teacher/authoring-tool.module.ts b/src/app/teacher/authoring-tool.module.ts index e5f914d1cb1..dcafc682266 100644 --- a/src/app/teacher/authoring-tool.module.ts +++ b/src/app/teacher/authoring-tool.module.ts @@ -82,7 +82,6 @@ import { ComponentTypeButtonComponent } from '../../assets/wise5/authoringTool/c ChooseSimulationComponent, ConcurrentAuthorsMessageComponent, ConfigureAutomatedAssessmentComponent, - CopyComponentButtonComponent, EditProjectLanguageSettingComponent, InsertNodeAfterButtonComponent, InsertNodeInsideButtonComponent, @@ -113,6 +112,7 @@ import { ComponentTypeButtonComponent } from '../../assets/wise5/authoringTool/c ComponentAuthoringModule, ComponentStudentModule, ComponentTypeButtonComponent, + CopyComponentButtonComponent, EditNodeTitleComponent, MatBadgeModule, MatChipsModule, diff --git a/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.spec.ts b/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.spec.ts index 5b5c5998f5c..d9bc212fd5d 100644 --- a/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.spec.ts +++ b/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.spec.ts @@ -1,10 +1,9 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { CopyComponentButtonComponent } from './copy-component-button.component'; import { TeacherProjectService } from '../../../services/teacherProjectService'; -import { MatIconModule } from '@angular/material/icon'; import { CopyTranslationsService } from '../../../services/copyTranslationsService'; import { ConfigService } from '../../../services/configService'; -import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http'; class MockTeacherProjectService {} describe('CopyComponentButtonComponent', () => { @@ -13,11 +12,11 @@ describe('CopyComponentButtonComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ - declarations: [CopyComponentButtonComponent], - imports: [HttpClientTestingModule, MatIconModule], + imports: [CopyComponentButtonComponent], providers: [ ConfigService, CopyTranslationsService, + provideHttpClient(withInterceptorsFromDi()), { provide: TeacherProjectService, useClass: MockTeacherProjectService } ] }); diff --git a/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.ts b/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.ts index dac0a18f4ce..173bcb5064f 100644 --- a/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.ts +++ b/src/assets/wise5/authoringTool/node/copy-component-button/copy-component-button.component.ts @@ -2,9 +2,14 @@ import { Component, EventEmitter, Input, Output } from '@angular/core'; import { TeacherProjectService } from '../../../services/teacherProjectService'; import { CopyTranslationsService } from '../../../services/copyTranslationsService'; import { Node } from '../../../common/Node'; +import { MatIconModule } from '@angular/material/icon'; +import { MatButtonModule } from '@angular/material/button'; +import { MatTooltipModule } from '@angular/material/tooltip'; @Component({ + imports: [MatButtonModule, MatIconModule, MatTooltipModule], selector: 'copy-component-button', + standalone: true, templateUrl: './copy-component-button.component.html' }) export class CopyComponentButtonComponent { diff --git a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.html b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.html index caa6859b2ce..5c5789d8f01 100644 --- a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.html +++ b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.html @@ -161,7 +161,7 @@