Skip to content

Commit

Permalink
fix: update the student list progress bar behavior
Browse files Browse the repository at this point in the history
- Progress bar now displays "No Interaction" when a project has no
  recorded interactions (task list is null) instead of "NaN%"
- Progress bar is now grey (not_started) instead of red (fail) when a project
  has no recorded interactions
  • Loading branch information
ublefo committed Aug 13, 2022
1 parent 4eab693 commit 778717b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/units/states/students-list/students-list.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ <h4>No students found</h4>
<progress class="task-progress" animate="true">
<bar
ng-repeat="bar in student.task_stats"
value="bar.value"
value="(bar.key === 'fail') && (bar.value !== bar.value) ? 0 : bar.value"
type="{{statusClass(bar.key)}}">
<span ng-hide="bar.value < 10">{{bar.value}}%</span>
<span ng-hide="bar.value < 10">{{bar.value !== bar.value ? 'No Interaction' : (bar.value + '%')}}</span>
</bar>
</progress>
</td><!--/progress-column-->
Expand Down

0 comments on commit 778717b

Please sign in to comment.