Skip to content

Commit

Permalink
Fix Core Only toggle (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored Feb 7, 2023
1 parent c40fafc commit 1906b3a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/tabs/firmware_flasher.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ firmware_flasher.initialize = function (callback) {
if (response.cloudBuild === true) {
$('div.build_configuration').slideDown();

const expertMode = $('.tab-firmware_flasher input.expert_mode').is(':checked');
const expertMode = expertMode_e.is(':checked');
if (expertMode) {
if (response.releaseType === 'Unstable') {
self.releaseLoader.loadCommits(response.release, (commits) => {
Expand Down Expand Up @@ -496,7 +496,7 @@ firmware_flasher.initialize = function (callback) {
const options = {};

let eraseAll = false;
if ($('input.erase_chip').is(':checked') || $('.tab-firmware_flasher input.expert_mode').not(':checked')) {
if ($('input.erase_chip').is(':checked') || expertMode_e.not(':checked')) {
options.erase_chip = true;

eraseAll = true;
Expand Down Expand Up @@ -703,6 +703,7 @@ firmware_flasher.initialize = function (callback) {
const status = $(this).is(':checked');

$('.hide-in-core-build-mode').toggle(!status);
$('div.expertOptions').toggle(!status && expertMode_e.is(':checked'));
});
$('input.corebuild_mode').change();

Expand Down

0 comments on commit 1906b3a

Please sign in to comment.