Skip to content

Commit

Permalink
Toggle show/hide advanced options button text
Browse files Browse the repository at this point in the history
Signed-off-by: William Vinnicombe <[email protected]>
  • Loading branch information
will-v-pi committed Apr 8, 2024
1 parent 77e11b6 commit b1da57b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,12 @@ var isPicoWireless = false;
for (let i = 0; i < advancedOptions2.length; i++) {
advancedOptions2[i].disabled = !advancedOptions2[i].disabled;
}
let hidden = advancedOptions[0].hidden;
if (hidden) {
document.getElementById('btn-advanced-options').innerText = "Show Advanced Options";
} else {
document.getElementById('btn-advanced-options').innerText = "Hide Advanced Options";
}
});
document.getElementById('btn-create').addEventListener('click', submitBtnClick);
const selectBoardTypeElement = document.getElementById('sel-board-type');
Expand Down

0 comments on commit b1da57b

Please sign in to comment.