1
0
Fork 0
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:
Dominic Clifton 2015-01-26 22:37:31 +01:00
parent ebbf3de5e1
commit 34b7b87c3e
6 changed files with 86 additions and 43 deletions

View file

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