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');
|
const select = document.getElementById('businessSelect');
|
||||||
|
|
||||||
if (this.businesses.length === 0) {
|
if (this.businesses.length === 0) {
|
||||||
select.innerHTML = '<option value="">No businesses yet - use wizard below</option>';
|
// No businesses - add wizard option only
|
||||||
select.disabled = true;
|
select.innerHTML = '<option value="">No businesses yet</option>';
|
||||||
document.getElementById('continueBtn').disabled = true;
|
const wizardOption = document.createElement('option');
|
||||||
|
wizardOption.value = 'NEW_WIZARD';
|
||||||
|
wizardOption.textContent = '✨ Create New Business';
|
||||||
|
select.appendChild(wizardOption);
|
||||||
} else {
|
} else {
|
||||||
select.innerHTML = '<option value="">Choose a business...</option>';
|
select.innerHTML = '<option value="">Choose a business...</option>';
|
||||||
select.disabled = false;
|
|
||||||
document.getElementById('continueBtn').disabled = false;
|
|
||||||
|
|
||||||
this.businesses.forEach(biz => {
|
this.businesses.forEach(biz => {
|
||||||
const option = document.createElement('option');
|
const option = document.createElement('option');
|
||||||
|
|
@ -385,8 +386,6 @@
|
||||||
const wizardOption = document.createElement('option');
|
const wizardOption = document.createElement('option');
|
||||||
wizardOption.value = 'NEW_WIZARD';
|
wizardOption.value = 'NEW_WIZARD';
|
||||||
wizardOption.textContent = '✨ New Business Wizard';
|
wizardOption.textContent = '✨ New Business Wizard';
|
||||||
wizardOption.style.fontWeight = 'bold';
|
|
||||||
wizardOption.style.color = 'var(--primary)';
|
|
||||||
select.appendChild(wizardOption);
|
select.appendChild(wizardOption);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue