fix: show "Start Application" when no saved session exists

Button defaults to green "Start Application" and only switches to
white "Restart Application" when localStorage has saved progress.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-04-09 10:14:18 -04:00
parent 4e4273c27b
commit ccc79c0489
1 changed files with 5 additions and 1 deletions

View File

@ -556,7 +556,7 @@
<a href="#" onclick="startFormAndResume(); return false;" style="color: var(--forest); font-weight: 600;">Resume where you left off</a>
</div>
<button class="btn btn-secondary" onclick="startForm()" style="font-size: 1.1rem; padding: 1rem 3rem;">Restart Application</button>
<button id="start-btn" class="btn btn-primary" onclick="startForm()" style="font-size: 1.1rem; padding: 1rem 3rem;">Start Application</button>
</div>
<div class="progress-container" id="progress-container">
@ -1050,6 +1050,10 @@
const saved = localStorage.getItem(STORAGE_KEY);
if (saved) {
document.getElementById('resume-notice').style.display = 'block';
const btn = document.getElementById('start-btn');
btn.textContent = 'Restart Application';
btn.classList.remove('btn-primary');
btn.classList.add('btn-secondary');
}
})();