mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
Hide tabs for features that are disabled.
This commit is contained in:
parent
addaa09935
commit
7e7361dafd
7 changed files with 232 additions and 147 deletions
|
@ -262,9 +262,11 @@ function onConnect() {
|
|||
$('div#connectbutton a.connect_state').text(chrome.i18n.getMessage('disconnect')).addClass('active');
|
||||
$('div#connectbutton a.connect').addClass('active');
|
||||
$('#tabs ul.mode-disconnected').hide();
|
||||
$('#tabs ul.mode-connected').show();
|
||||
$('#tabs ul.mode-connected-cli').show();
|
||||
|
||||
if (CONFIG.flightControllerVersion !== '') {
|
||||
$('#tabs ul.mode-connected').show();
|
||||
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "3.0.0")) {
|
||||
MSP.send_message(MSP_codes.MSP_STATUS_EX, false, false);
|
||||
} else {
|
||||
|
@ -301,6 +303,7 @@ function onClosed(result) {
|
|||
}
|
||||
|
||||
$('#tabs ul.mode-connected').hide();
|
||||
$('#tabs ul.mode-connected-cli').hide();
|
||||
$('#tabs ul.mode-disconnected').show();
|
||||
|
||||
var sensor_state = $('#sensor-status');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue