mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Allow old API version to be used but disable LED strip tab and
backup/restore functionality in certain cases. Cleanup of tab switching.
This commit is contained in:
parent
ebbf3de5e1
commit
34b7b87c3e
6 changed files with 86 additions and 43 deletions
22
js/gui.js
22
js/gui.js
|
@ -13,6 +13,28 @@ var GUI_control = function () {
|
|||
this.optional_usb_permissions = false; // controlled by usb permissions code
|
||||
this.interval_array = [];
|
||||
this.timeout_array = [];
|
||||
this.defaultAllowedTabsWhenDisconnected = [
|
||||
'landing',
|
||||
'firmware_flasher'
|
||||
];
|
||||
this.defaultAllowedTabsWhenConnected = [
|
||||
'adjustments',
|
||||
'auxiliary',
|
||||
'cli',
|
||||
'configuration',
|
||||
'gps',
|
||||
'led_strip',
|
||||
'logging',
|
||||
'modes',
|
||||
'motors',
|
||||
'pid_tuning',
|
||||
'ports',
|
||||
'receiver',
|
||||
'sensors',
|
||||
'servos',
|
||||
'setup'
|
||||
];
|
||||
this.allowedTabs = this.defaultAllowedTabsWhenDisconnected;
|
||||
|
||||
// check which operating system is user running
|
||||
if (navigator.appVersion.indexOf("Win") != -1) this.operating_system = "Windows";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue