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 f94c5afc64f..78c6fb094fa 100644 --- a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html +++ b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html @@ -89,11 +89,12 @@ branchPathStepHeader: isNodeInAnyBranchPath(item.key) && !isGroupNode(item.key) }" [ngStyle]="{ 'background-color': getStepBackgroundColor(item.key) }" + (click)="nodeClicked(item.key)" > -
+

Unused Lessons isNodeInAnyBranchPath(inactiveNode.id) && !isGroupNode(inactiveNode.id) }" class="pointer projectItem" + (click)="nodeClicked(inactiveNode.id)" > -

+
@@ -194,20 +187,17 @@
Unused Lessons
isNodeInAnyBranchPath(inactiveChildId.id) && !isGroupNode(inactiveChildId.id) }" class="pointer projectItem" + (click)="nodeClicked(inactiveChildId)" > -
+
@@ -231,20 +221,17 @@
Unused Steps
branchPathStepHeader: isNodeInAnyBranchPath(inactiveNode.id) && !isGroupNode(inactiveNode.id) }" + (click)="nodeClicked(inactiveNode.id)" > -
+
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 b258843bab4..ae84832432c 100644 --- a/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts +++ b/src/assets/wise5/authoringTool/project-authoring/project-authoring.component.ts @@ -193,7 +193,7 @@ export class ProjectAuthoringComponent { * The checkbox for a node was clicked. We do not allow selecting a mix of group and step nodes. * If any group nodes are selected, disable all step node checkboxes, and vise-versa. */ - protected selectNode(): void { + protected selectNode($event: Event): void { const checkedNodes = this.items .concat(Object.values(this.idToNode)) .filter((item) => item.checked); @@ -204,6 +204,7 @@ export class ProjectAuthoringComponent { this.groupNodeSelected = this.isGroupNode(checkedNodes[0].id); this.stepNodeSelected = !this.groupNodeSelected; } + $event.stopPropagation(); } protected isBranchPoint(nodeId: string): boolean { diff --git a/src/messages.xlf b/src/messages.xlf index b0683960afa..f5ea6038818 100644 --- a/src/messages.xlf +++ b/src/messages.xlf @@ -9622,7 +9622,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 157 + 153 @@ -9637,7 +9637,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 220 + 210 @@ -9652,7 +9652,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 221 + 211 @@ -12039,7 +12039,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it.Select lesson or step src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 101 + 102 @@ -12048,7 +12048,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 116,118 + 112,114 @@ -12057,7 +12057,7 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 126,128 + 122,124 @@ -12066,32 +12066,32 @@ Click "Cancel" to keep the invalid JSON open so you can fix it. src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 136,138 + 132,134 Has Rubric src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 145 + 141 Select lesson src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 175 + 172 Select step src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 203 + 197 src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html - 240 + 231