Hide separate bootloader downloads when firmware includes one
This commit is contained in:
1 parent
3a2d3ecf7a
commit
042cdce888
2 files changed
+6
-2
No files matched your search
@@ -2973,7 +2973,11 @@
|
||||
const chip = catalog.profiles.some(function (profile) {
|
||||
return profile.hardware === hardware && profile.chipFamily === "nrf52";
|
||||
}) ? "nrf52" : "";
|
||||
panel.hidden = chip !== "nrf52";
|
||||
const matches = matchingProfiles();
|
||||
const bootloaderIncluded = matches.length > 0 && matches.every(function (profile) {
|
||||
return Boolean(profile.embeddedBootloader);
|
||||
});
|
||||
panel.hidden = chip !== "nrf52" || bootloaderIncluded;
|
||||
if (panel.hidden) return;
|
||||
const title = panel.querySelector('[data-role="bootloader-title"]');
|
||||
const content = panel.querySelector('[data-role="bootloader-content"]');
|
||||
|
||||
+1
-1
@@ -135,7 +135,7 @@ extra_javascript:
|
||||
- _javascript/hosted_doc_links.js?v=20261007-1
|
||||
- _javascript/notification_builder.js?v=20261006-channel9
|
||||
- https://unpkg.com/leaflet@1.9.4/dist/leaflet.js
|
||||
- _javascript/firmware_picker.js?v=20261024-board-profile-audit
|
||||
- _javascript/firmware_picker.js?v=20261024-included-bootloader
|
||||
- _javascript/telemetry_decoder.js?v=20261022-noise-history
|
||||
- _javascript/management_decoder.js
|
||||
- _javascript/filter_tool.js?v=20261002-hashbytes-2plus
|
||||
|
||||
Reference in new issue
Block a user