Fix populateBusinessSelect - remove continueBtn references
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
6f0229247f
commit
80aa65d7fa
1 changed files with 6 additions and 7 deletions
|
|
@ -366,13 +366,14 @@
|
|||
const select = document.getElementById('businessSelect');
|
||||
|
||||
if (this.businesses.length === 0) {
|
||||
select.innerHTML = '<option value="">No businesses yet - use wizard below</option>';
|
||||
select.disabled = true;
|
||||
document.getElementById('continueBtn').disabled = true;
|
||||
// No businesses - add wizard option only
|
||||
select.innerHTML = '<option value="">No businesses yet</option>';
|
||||
const wizardOption = document.createElement('option');
|
||||
wizardOption.value = 'NEW_WIZARD';
|
||||
wizardOption.textContent = '✨ Create New Business';
|
||||
select.appendChild(wizardOption);
|
||||
} else {
|
||||
select.innerHTML = '<option value="">Choose a business...</option>';
|
||||
select.disabled = false;
|
||||
document.getElementById('continueBtn').disabled = false;
|
||||
|
||||
this.businesses.forEach(biz => {
|
||||
const option = document.createElement('option');
|
||||
|
|
@ -385,8 +386,6 @@
|
|||
const wizardOption = document.createElement('option');
|
||||
wizardOption.value = 'NEW_WIZARD';
|
||||
wizardOption.textContent = '✨ New Business Wizard';
|
||||
wizardOption.style.fontWeight = 'bold';
|
||||
wizardOption.style.color = 'var(--primary)';
|
||||
select.appendChild(wizardOption);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue