Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔀✨ [core, eb] staff for trailers #2739

Merged
merged 10 commits into from
Dec 4, 2023
Prev Previous commit
Next Next commit
🐛 [eb/epa] fix disabled state of checkboxes
  • Loading branch information
jxn-30 committed Nov 22, 2023
commit 3d88d804e21c6a4054c318d477dd783b769233ab
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,16 @@ export default async (
);
let trailersCheckbox: HTMLInputElement | undefined;
let equipmentCheckbox: HTMLInputElement | undefined;
if (schoolingIDs.trailers.size)
if (schoolingIDs.trailers.size) {
trailersCheckbox = await addCheckbox('toggleFittingTrailers', () => {});
trailersCheckbox.disabled = !toggleCheckbox.checked;
}
if (schoolingIDs.equipment.size) {
equipmentCheckbox = await addCheckbox(
'toggleFittingEquipment',
() => {}
);
equipmentCheckbox.disabled = !toggleCheckbox.checked;
}

const filterStyle = document.createElement('style');
Expand Down