Fix loaded service indicator disappearing when modifying navigation

This commit is contained in:
Alice Gaudon 2020-05-19 04:46:34 +02:00
parent 93a226f1b3
commit de37996370

View File

@ -555,11 +555,14 @@ function updateNavigation() {
// Update active list element
for (let i = 0; i < services.length; i++) {
const service = services[i];
if (parseInt(selectedService) === i) {
service.li.classList.add('active');
} else {
service.li.classList.remove('active');
}
// Active?
if (parseInt(selectedService) === i) service.li.classList.add('active');
else service.li.classList.remove('active');
// Loaded?
if (service.viewReady) service.li.classList.add('loaded');
else service.li.classList.remove('loaded');
}
if (selectedService !== null && services[selectedService].viewReady) {