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:
parent
44684cb8d0
commit
54747c9c2b
1 changed files with 9 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue