From 823a734224fcfd8f99ac160e3b2534eb2543b839 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 10 Nov 2025 11:13:12 -0700 Subject: [PATCH] refactor: migrate tab visibility logic from jQuery to Vue - Moved expert mode state to reactive Vue model for declarative UI updates - Replaced imperative jQuery .toggle() calls with Vue v-show directives in template - Simplified updateTabList to only sync checkbox state with Vue model --- src/components/init.js | 2 ++ src/index.html | 25 ++++++++++--------------- src/js/utils/updateTabList.js | 27 +++++++++++---------------- 3 files changed, 23 insertions(+), 31 deletions(-) diff --git a/src/components/init.js b/src/components/init.js index d751f8a0c9..d4bcf2d236 100644 --- a/src/components/init.js +++ b/src/components/init.js @@ -38,6 +38,8 @@ const betaflightModel = reactive({ PortUsage, PortHandler, CONNECTION, + // Reactive expert mode flag to drive tab visibility via Vue + expertMode: false, }); tippy.setDefaultProps({ diff --git a/src/index.html b/src/index.html index f68454799c..27bc3020ed 100644 --- a/src/index.html +++ b/src/index.html @@ -88,7 +88,7 @@
@@ -137,27 +137,22 @@
  • -
  • +
  • -
  • -
  • -
  • +
  • +
  • +
  • -
  • +
  • -
  • -
  • -
  • -
  • +
  • +
  • +
  • +
  • -