1
0
Fork 0
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:
mikeller 2019-02-12 00:48:12 +13:00
parent a2c2b82806
commit d86bb0d41e
5 changed files with 80 additions and 49 deletions

View file

@ -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;
}
}
}

View file

@ -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'));
}