| 519 | if (stale && currentLabel !== undefined) addMapping({...mapping, dimensionLabel: currentLabel}, false, false); |
| 520 | })); |
| 521 | function updateMappingCount() { |
| 522 | const count = mappings.filter(mapping => mapping.check.checked).length; |
| 523 | mappingCount.textContent = `${t('analytics', 'Selected')}: ${count}`; |
| 524 | } |
| 525 | const setEnabled = () => { |
| 526 | settings.classList.toggle('is-disabled', !enabled.checked); |
| 527 | settings.querySelectorAll('input, select').forEach(control => { control.disabled = !enabled.checked; }); |