+
+ Batch edit mode
+
+ @if (batchEditMode) {
+
+
+
}
- }
-
-
- @if (inactiveGroupNodes.length === 0) {
-
-
There are no unused lessons
-
-
- } @else {
-
- @for (groupNode of inactiveGroupNodes; track groupNode.id; let first = $first) {
+
+
+
+
+
+
+ @if (lessons.length === 0) {
+
+
There are no lessons
+
+
+ } @else {
+ @for (lesson of lessons; track lesson.id; let first = $first) {
}
-
- }
+ }
+
-
- @if (inactiveStepNodes.length === 0) {
-
There are no unused steps
- } @else {
- @for (inactiveStepNode of inactiveStepNodes; track inactiveStepNode.id) {
- @if (getParentGroup(inactiveStepNode.id) == null) {
-
+
+
+ @if (inactiveGroupNodes.length === 0) {
+
+
There are no unused lessons
+
+
+ } @else {
+
+ @for (groupNode of inactiveGroupNodes; track groupNode.id; let first = $first) {
+
+ }
+
+ }
+
+
+
+ @if (inactiveStepNodes.length === 0) {
+
There are no unused steps
+ } @else {
+ @for (inactiveStepNode of inactiveStepNodes; track inactiveStepNode.id) {
+ @if (getParentGroup(inactiveStepNode.id) == null) {
+
+ }
}
}
- }
+
diff --git a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts
index c544a1fa64b..f9c8e9de0b1 100644
--- a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts
+++ b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts
@@ -18,13 +18,18 @@ import { ExpandEvent } from '../domain/expand-event';
import { DeleteTranslationsService } from '../../services/deleteTranslationsService';
import { ComponentContent } from '../../common/ComponentContent';
import { copy } from '../../common/object/object';
+import { MatSlideToggle } from '@angular/material/slide-toggle';
+import { CdkDrag, CdkDragDrop, DragDropModule, moveItemInArray } from '@angular/cdk/drag-drop';
+import { MoveNodesService } from '../../services/moveNodesService';
@Component({
imports: [
+ DragDropModule,
FormsModule,
MatButtonModule,
MatTooltipModule,
MatIconModule,
+ MatSlideToggle,
ProjectAuthoringLessonComponent,
ProjectAuthoringStepComponent,
AddLessonButtonComponent
@@ -33,12 +38,14 @@ import { copy } from '../../common/object/object';
templateUrl: './project-authoring.component.html'
})
export class ProjectAuthoringComponent implements OnInit {
+ protected allGroupIds: string[];
protected allLessonsCollapsed: Signal