diff --git a/js/configurator_main.js b/js/configurator_main.js index ce2e5634..4ca94c2d 100644 --- a/js/configurator_main.js +++ b/js/configurator_main.js @@ -24,6 +24,7 @@ const update = require('./globalUpdates'); const appUpdater = require('./appUpdater'); const CliAutoComplete = require('./CliAutoComplete'); const { SITLProcess } = require('./sitl'); +const settingsCache = require('./settingsCache'); process.on('uncaughtException', function (error) { if (process.env.NODE_ENV !== 'development') { @@ -385,6 +386,9 @@ $(function() { $('#demoModeReset').on('click', function () { SITLProcess.deleteEepromFile('demo.bin'); }); + $('#maintenanceFlushSettingsCache').on('click', function () { + settingsCache.flush(); + }); function close_and_cleanup(e) { if (e.type == 'click' && !$.contains($('div#options-window')[0], e.target) || e.type == 'keyup' && e.keyCode == 27) { $(document).unbind('click keyup', close_and_cleanup); diff --git a/js/settingsCache.js b/js/settingsCache.js index fcd17957..6698cea7 100644 --- a/js/settingsCache.js +++ b/js/settingsCache.js @@ -17,6 +17,7 @@ var settingsCache = (function() { publicScope.flush = function() { store.delete(SETTINGS_KEY); + console.log('Settings cache flushed'); }; publicScope.get = function(settingName) { diff --git a/locale/en/messages.json b/locale/en/messages.json index 3af2e7f3..bd3ff575 100644 --- a/locale/en/messages.json +++ b/locale/en/messages.json @@ -5812,5 +5812,11 @@ }, "gsTelemetrySpeed": { "message": "Speed" + }, + "maintenance": { + "message": "Maintenance" + }, + "maintenanceFlushSettingsCache": { + "message": "Flush settings cache" } } diff --git a/tabs/options.html b/tabs/options.html index 303aa010..7c21b29d 100644 --- a/tabs/options.html +++ b/tabs/options.html @@ -87,5 +87,15 @@ +
+
+
+
+
+
+ +
+
+
\ No newline at end of file