-
-
-
-
-
-
-
+ [componentId]="component.id"
+ >
+
+
+
+
+
+ expand_more
+
+
+ expand_less
+
+
+
+
+
+
+
diff --git a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.spec.ts b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.spec.ts
index c8fc3e9a2c5..1d7ee1fa57c 100644
--- a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.spec.ts
+++ b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.spec.ts
@@ -22,6 +22,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop';
import { RouterTestingModule } from '@angular/router/testing';
import { ActivatedRoute, Router, convertToParamMap } from '@angular/router';
import { of } from 'rxjs';
+import { TeacherNodeService } from '../../../services/teacherNodeService';
let component: NodeAuthoringComponent;
let component1: any;
@@ -56,6 +57,7 @@ describe('NodeAuthoringComponent', () => {
ClassroomStatusService,
ProjectAssetService,
TeacherDataService,
+ TeacherNodeService,
TeacherProjectService,
TeacherWebSocketService,
{
diff --git a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.ts b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.ts
index 6979023abcf..abdadb64818 100644
--- a/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.ts
+++ b/src/assets/wise5/authoringTool/node/node-authoring/node-authoring.component.ts
@@ -2,7 +2,6 @@ import { Component, OnInit } from '@angular/core';
import { Subscription, filter } from 'rxjs';
import { TeacherDataService } from '../../../services/teacherDataService';
import { TeacherProjectService } from '../../../services/teacherProjectService';
-import { NodeService } from '../../../services/nodeService';
import { ComponentTypeService } from '../../../services/componentTypeService';
import { ComponentServiceLookupService } from '../../../services/componentServiceLookupService';
import { Node } from '../../../common/Node';
@@ -14,7 +13,8 @@ import { EditComponentAdvancedComponent } from '../../../../../app/authoring-too
import { Component as WiseComponent } from '../../../common/Component';
import { ChooseNewComponent } from '../../../../../app/authoring-tool/add-component/choose-new-component/choose-new-component.component';
import { CdkDragDrop, moveItemInArray } from '@angular/cdk/drag-drop';
-import { ActivatedRoute, NavigationEnd, Router } from '@angular/router';
+import { ActivatedRoute, Router } from '@angular/router';
+import { TeacherNodeService } from '../../../services/teacherNodeService';
@Component({
selector: 'node-authoring',
@@ -32,7 +32,6 @@ export class NodeAuthoringComponent implements OnInit {
nodeId: string;
nodePosition: any;
projectId: number;
- showNodeView: boolean = true;
subscriptions: Subscription = new Subscription();
constructor(
@@ -40,19 +39,14 @@ export class NodeAuthoringComponent implements OnInit {
private componentServiceLookupService: ComponentServiceLookupService,
private componentTypeService: ComponentTypeService,
private dialog: MatDialog,
- private nodeService: NodeService,
+ private nodeService: TeacherNodeService,
private projectService: TeacherProjectService,
private dataService: TeacherDataService,
private route: ActivatedRoute,
private router: Router
- ) {
- this.router.events
- .pipe(filter((event) => event instanceof NavigationEnd))
- .subscribe(() => this.updateShowNodeView());
- }
+ ) {}
ngOnInit(): void {
- this.updateShowNodeView();
this.nodeId = this.route.snapshot.paramMap.get('nodeId');
this.route.parent.params.subscribe((params) => {
this.projectId = Number(params.unitId);
@@ -82,12 +76,6 @@ export class NodeAuthoringComponent implements OnInit {
}
}
- private updateShowNodeView(): void {
- this.showNodeView = /\/teacher\/edit\/unit\/(\d*)\/node\/(node|group)(\d*)$/.test(
- this.router.url
- );
- }
-
ngOnDestroy(): void {
this.subscriptions.unsubscribe();
}
@@ -189,10 +177,6 @@ export class NodeAuthoringComponent implements OnInit {
return this.projectService.saveProject();
}
- protected showAdvancedView(): void {
- this.router.navigate([`/teacher/edit/unit/${this.projectId}/node/${this.nodeId}/advanced`]);
- }
-
protected getSelectedComponents(): ComponentContent[] {
return this.components.filter(
(component: ComponentContent) => this.componentsToChecked[component.id]
diff --git a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html
index 1622181667d..de15efaf2fc 100644
--- a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html
+++ b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html
@@ -13,9 +13,9 @@