Show step 4 (Results) as green checkmark in stepper

Step 4 now shows a green checkmark like completed steps, since reaching
Results means the wizard is complete.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alessandro Benedetti Admin 2026-03-06 17:39:40 +00:00
parent 181dfbe7bf
commit e23c887b0f

View file

@ -128,7 +128,7 @@ function goToStep(step) {
document.querySelectorAll('.step-item').forEach(item => {
const s = parseInt(item.dataset.step);
const num = item.querySelector('.step-number');
if (s < step) {
if (s < step || (s === step && step === 4)) {
num.className = 'step-number flex items-center justify-center w-8 h-8 rounded-full bg-green-500 text-white text-sm font-semibold shrink-0';
num.innerHTML = '<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5 13l4 4L19 7"/></svg>';
} else if (s === step) {