Skip to content

Commit

Permalink
Fix layout for unused lessons and steps
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokiterashima committed Oct 23, 2023
1 parent 98eee45 commit b8f40fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ <h6 class="unused-header">Unused Lessons</h6>
<ng-container *ngFor="let inactiveChildId of inactiveNode.ids">
<div class="projectItem" id="{{ inactiveChildId }}">
<div
fxLayoutAlign="start center"
[ngClass]="{
groupHeader: isGroupNode(inactiveChildId.id),
stepHeader: !isGroupNode(inactiveChildId.id),
Expand All @@ -180,7 +181,7 @@ <h6 class="unused-header">Unused Lessons</h6>
<mat-checkbox
color="primary"
[(ngModel)]="idToNode[inactiveChildId].checked"
(change)="selectNode($event)"
(click)="selectNode($event)"
[disabled]="groupNodeSelected"
aria-label="Select step"
i18n-aria-label
Expand All @@ -201,8 +202,10 @@ <h6 class="unused-header" i18n>Unused Steps</h6>
<div
*ngIf="!isGroupNode(inactiveNode.id) && getParentGroup(inactiveNode.id) == null"
class="pointer projectItem"
id="{{ inactiveNode.id }}"
>
<div
fxLayoutAlign="start center"
[ngClass]="{
groupHeader: isGroupNode(inactiveNode.id),
stepHeader: !isGroupNode(inactiveNode.id),
Expand Down
8 changes: 4 additions & 4 deletions src/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -9700,7 +9700,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">198</context>
<context context-type="linenumber">199</context>
</context-group>
</trans-unit>
<trans-unit id="0217500199a3e48a7b95762b14b79dad49e76beb" datatype="html">
Expand All @@ -9715,7 +9715,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">199</context>
<context context-type="linenumber">200</context>
</context-group>
</trans-unit>
<trans-unit id="f951d80b53d5536f79142285e8ba09f190a3c723" datatype="html">
Expand Down Expand Up @@ -12146,11 +12146,11 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<source>Select step</source>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">185</context>
<context context-type="linenumber">186</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/assets/wise5/authoringTool/project-authoring/project-authoring.component.html</context>
<context context-type="linenumber">219</context>
<context context-type="linenumber">222</context>
</context-group>
</trans-unit>
<trans-unit id="791981839110791639" datatype="html">
Expand Down

0 comments on commit b8f40fc

Please sign in to comment.