mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Update messaging used when api version is incompatible.
This commit is contained in:
parent
6031907163
commit
3a4ea7e1c1
2 changed files with 12 additions and 4 deletions
|
@ -117,7 +117,15 @@
|
||||||
"message": "No configuration received within <span style=\"color: red\">10 seconds</span>, communication <span style=\"color: red\">failed</span>"
|
"message": "No configuration received within <span style=\"color: red\">10 seconds</span>, communication <span style=\"color: red\">failed</span>"
|
||||||
},
|
},
|
||||||
"firmwareVersionNotSupported": {
|
"firmwareVersionNotSupported": {
|
||||||
"message": "This firmware version is <span style=\"color: red\">not supported</span>. Please upgrade to firmware that supports api version <strong>$1</strong> or higher. Only CLI is usable for backup purposes."
|
"message": "This firmware version is <span style=\"color: red\">not supported</span>. Please upgrade to firmware that supports api version <strong>$1</strong> or higher. Use CLI for backup before flashing. CLI backup/restore procedure is in the documention."
|
||||||
|
},
|
||||||
|
|
||||||
|
"tabSwitchConnectionRequired": {
|
||||||
|
"message": "You need to <strong>connect</strong> before you can view any of the tabs."
|
||||||
|
},
|
||||||
|
|
||||||
|
"tabSwitchUpgradeRequired": {
|
||||||
|
"message": "You need to <strong>upgrade</strong> your firmware before you can view any of the tabs."
|
||||||
},
|
},
|
||||||
"firmwareVersion": {
|
"firmwareVersion": {
|
||||||
"message": "Firmware Version: <strong>$1</strong>"
|
"message": "Firmware Version: <strong>$1</strong>"
|
||||||
|
|
4
main.js
4
main.js
|
@ -63,12 +63,12 @@ $(document).ready(function () {
|
||||||
tab = $(self).parent().prop('class');
|
tab = $(self).parent().prop('class');
|
||||||
|
|
||||||
if (!CONFIGURATOR.connectionValid) {
|
if (!CONFIGURATOR.connectionValid) {
|
||||||
GUI.log('You need to <strong>connect</strong> before you can view any of the tabs');
|
GUI.log('tabSwitchConnectionRequired');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CONFIGURATOR.connectionValidCliOnly) {
|
if (CONFIGURATOR.connectionValidCliOnly) {
|
||||||
GUI.log('You need to <strong>upgrade</strong> your firmware before you can view any of the tabs. Use CLI for backup before flashing!');
|
GUI.log(chrome.i18n.getMessage('tabSwitchUpgradeRequired'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue