|
|
@ -187,8 +187,10 @@ export function renderTopicProgress( |
|
|
|
matchingElements.forEach((element) => { |
|
|
|
matchingElements.forEach((element) => { |
|
|
|
if (isDone) { |
|
|
|
if (isDone) { |
|
|
|
element.classList.add('done'); |
|
|
|
element.classList.add('done'); |
|
|
|
|
|
|
|
element.classList.remove('learning'); |
|
|
|
} else if (isLearning) { |
|
|
|
} else if (isLearning) { |
|
|
|
element.classList.add('learning'); |
|
|
|
element.classList.add('learning'); |
|
|
|
|
|
|
|
element.classList.remove('done'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
element.classList.remove('done'); |
|
|
|
element.classList.remove('done'); |
|
|
|
element.classList.remove('learning'); |
|
|
|
element.classList.remove('learning'); |
|
|
|