1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

FIX: Load firmware online button not enabled if not in expert mode (#3142)

This commit is contained in:
J Blackman 2022-12-15 06:49:36 +11:00 committed by GitHub
parent 44684cb8d0
commit 54747c9c2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,17 +279,17 @@ firmware_flasher.initialize = function (callback) {
const expertMode = $('.tab-firmware_flasher input.expert_mode').is(':checked');
if (!expertMode) {
$('div.commitSelection').hide();
return;
}
$('div.commitSelection').show();
} else {
$('div.commitSelection').show();
self.releaseLoader.loadCommits(summary.release, (commits) => {
const select_e = $('select[name="commits"]');
select_e.empty();
commits.forEach((commit) => {
select_e.append($(`<option value='${commit.sha}'>${commit.message}</option>`));
self.releaseLoader.loadCommits(summary.release, (commits) => {
const select_e = $('select[name="commits"]');
select_e.empty();
commits.forEach((commit) => {
select_e.append($(`<option value='${commit.sha}'>${commit.message}</option>`));
});
});
});
}
}
if (summary.configuration && !self.isConfigLocal) {