diff --git a/src/js/tabs/firmware_flasher.js b/src/js/tabs/firmware_flasher.js index 7a696b31..f700264e 100644 --- a/src/js/tabs/firmware_flasher.js +++ b/src/js/tabs/firmware_flasher.js @@ -277,18 +277,24 @@ firmware_flasher.initialize = function (callback) { $('div.build_configuration').slideDown(); const expertMode = $('.tab-firmware_flasher input.expert_mode').is(':checked'); - if (!expertMode) { - $('div.commitSelection').hide(); - } else { - $('div.commitSelection').show(); + if (expertMode) { + $('div.expertOptions').show(); - self.releaseLoader.loadCommits(summary.release, (commits) => { - const select_e = $('select[name="commits"]'); - select_e.empty(); - commits.forEach((commit) => { - select_e.append($(``)); + if (summary.releaseType === 'Unstable') { + self.releaseLoader.loadCommits(summary.release, (commits) => { + const select_e = $('select[name="commits"]'); + select_e.empty(); + commits.forEach((commit) => { + select_e.append($(``)); + }); }); - }); + + $('div.commitSelection').show(); + } else { + $('div.commitSelection').hide(); + } + } else { + $('div.expertOptions').hide(); } } diff --git a/src/tabs/firmware_flasher.html b/src/tabs/firmware_flasher.html index e84e2ef3..883cb237 100644 --- a/src/tabs/firmware_flasher.html +++ b/src/tabs/firmware_flasher.html @@ -197,9 +197,16 @@ -