mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 12:55:14 +03:00
feat: move static tabs to modules
This commit is contained in:
parent
e84666eb7c
commit
54b0a118a1
3 changed files with 16 additions and 7 deletions
|
@ -295,13 +295,19 @@ function startProcess() {
|
|||
|
||||
switch (tab) {
|
||||
case 'landing':
|
||||
import('./tabs/landing').then(({ landing }) => landing.initialize(content_ready));
|
||||
import("./tabs/landing").then(({ landing }) =>
|
||||
landing.initialize(content_ready)
|
||||
);
|
||||
break;
|
||||
case 'changelog':
|
||||
TABS.staticTab.initialize('changelog', content_ready);
|
||||
import("./tabs/static_tab").then(({ staticTab }) =>
|
||||
staticTab.initialize("changelog", content_ready)
|
||||
);
|
||||
break;
|
||||
case 'privacy_policy':
|
||||
TABS.staticTab.initialize('privacy_policy', content_ready);
|
||||
import("./tabs/static_tab").then(({ staticTab }) =>
|
||||
staticTab.initialize("privacy_policy", content_ready)
|
||||
);
|
||||
break;
|
||||
case 'options':
|
||||
TABS.options.initialize(content_ready);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue