Commit 17790ce0 authored by TravisCarden's avatar TravisCarden

By TravisCarden: Fixed display of checklist progress bar.

parent f4e6e1ea
......@@ -43,6 +43,11 @@ class ChecklistapiChecklistForm implements FormInterface {
'#number_complete' => $checklist->getNumberCompleted(),
'#number_of_items' => $checklist->getNumberOfItems(),
'#percent_complete' => (int) round($checklist->getPercentComplete()),
'#attached' => [
'library' => [
'classy/progress',
],
],
];
// Compact mode.
......
......@@ -12,7 +12,7 @@
* @ingroup themeable
*/
#}
<div class="progress" aria-live="polite">
<div class="progress" data-drupal-progress>
<div class="progress__track"><div class="progress__bar" style="width: {{ percent_complete }}%;"></div></div>
<div class="progress__percentage">{{ number_complete }} of {{ number_of_items }} ({{ percent_complete }}%)</div>
<div class="progress__description">{{ message }}</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment