feat: move help tab to modules

10.8-maintenance
Tomas Chmelevskij 2021-03-01 19:16:51 +01:00
parent 6c8dd5de6d
commit 68b39643b7
3 changed files with 9 additions and 7 deletions

View File

@ -316,7 +316,7 @@ function startProcess() {
TABS.firmware_flasher.initialize(content_ready);
break;
case 'help':
TABS.help.initialize(content_ready);
import('./tabs/help').then(({ help }) => help.initialize(content_ready));
break;
case 'auxiliary':
TABS.auxiliary.initialize(content_ready);

View File

@ -1,7 +1,5 @@
'use strict';
TABS.help = {};
TABS.help.initialize = function (callback) {
const help = {};
help.initialize = function (callback) {
if (GUI.active_tab != 'help') {
GUI.active_tab = 'help';
@ -14,6 +12,11 @@ TABS.help.initialize = function (callback) {
});
};
TABS.help.cleanup = function (callback) {
help.cleanup = function (callback) {
if (callback) callback();
};
// TODO: remove when modules are in place
window.TABS.help = help;
export { help };

View File

@ -114,7 +114,6 @@
<script type="text/javascript" src="./js/tabs/landing.js"></script>
<script type="text/javascript" src="./js/tabs/setup.js"></script>
<script type="text/javascript" src="./js/tabs/setup_osd.js"></script>
<script type="text/javascript" src="./js/tabs/help.js"></script>
<script type="text/javascript" src="./js/tabs/ports.js"></script>
<script type="text/javascript" src="./js/tabs/configuration.js"></script>
<script type="text/javascript" src="./js/tabs/pid_tuning.js"></script>