From 3680bb2bc43dc61d63a9d6d7b0b0562b7aa3728b Mon Sep 17 00:00:00 2001 From: Geoffrey Kwan Date: Thu, 6 Jun 2024 18:01:31 -0700 Subject: [PATCH] refactor(Student StepTools): Convert to standalone (#1820) --- src/app/student/vle/student-vle.module.ts | 4 +- .../stepTools/step-tools.component.html | 6 -- .../stepTools/step-tools.component.html | 40 ++++----- .../stepTools/step-tools.component.spec.ts | 39 ++------- .../stepTools/step-tools.component.ts | 81 ++++++++++--------- src/assets/wise5/vle/vle.component.html | 2 +- src/assets/wise5/vle/vle.component.spec.ts | 9 +-- src/messages.xlf | 32 +++----- 8 files changed, 86 insertions(+), 127 deletions(-) diff --git a/src/app/student/vle/student-vle.module.ts b/src/app/student/vle/student-vle.module.ts index 6748b24b1b4..3911921645b 100644 --- a/src/app/student/vle/student-vle.module.ts +++ b/src/app/student/vle/student-vle.module.ts @@ -43,12 +43,10 @@ import { NodeStatusIconComponent } from '../../../assets/wise5/themes/default/th NodeNavigationComponent, RunEndedAndLockedMessageComponent, SafeUrl, - StepToolsComponent, VLEComponent, VLEParentComponent ], imports: [ - StudentTeacherCommonModule, CommonModule, ComponentStudentModule, MatDialogModule, @@ -56,8 +54,10 @@ import { NodeStatusIconComponent } from '../../../assets/wise5/themes/default/th NodeModule, NodeStatusIconComponent, SimpleDialogModule, + StepToolsComponent, StudentAssetsDialogModule, StudentComponentModule, + StudentTeacherCommonModule, StudentVLERoutingModule, SummaryDisplayModule, TopBarComponent diff --git a/src/assets/wise5/common/stepTools/step-tools.component.html b/src/assets/wise5/common/stepTools/step-tools.component.html index a73ea97319b..8821b3f0eb4 100644 --- a/src/assets/wise5/common/stepTools/step-tools.component.html +++ b/src/assets/wise5/common/stepTools/step-tools.component.html @@ -2,8 +2,6 @@
- -
  + + +   {{ getNodePositionAndTitle(nodeId) }} - - -
- - - {{ - getNodePositionAndTitle(nodeId) - }} -
-
-
+ @for (nodeId of nodeIds; track nodeId) { + @if (nodeStatuses[nodeId].isVisible) { + +
+ + {{ + getNodePositionAndTitle(nodeId) + }} +
+
+ } + }
- +