mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Changed it to use a tooltip. God I hate CSS.
This commit is contained in:
parent
a2c2b82806
commit
d86bb0d41e
5 changed files with 80 additions and 49 deletions
|
@ -1271,7 +1271,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
|
||||
switch (code) {
|
||||
case MSPCodes.MSP_SET_REBOOT:
|
||||
showErrorDialog(i18n.getMessage('operationNotSupported'));
|
||||
TABS.onboard_logging.mscRebootFailedCallback();
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -582,3 +582,10 @@ TABS.onboard_logging.cleanup = function (callback) {
|
|||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
TABS.onboard_logging.mscRebootFailedCallback = function () {
|
||||
$(".tab-onboard_logging")
|
||||
.toggleClass("msc-supported", false);
|
||||
|
||||
showErrorDialog(i18n.getMessage('operationNotSupported'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue