From 34404f6e40a2c54bc162b870ef3026a71118587d Mon Sep 17 00:00:00 2001 From: divocat Date: Thu, 9 Oct 2025 22:19:16 +0300 Subject: [PATCH] feat: reorder section & settings tabs --- .../resources/view/podkop/podkop.js | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js index 74f8766..5cc6b4c 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js @@ -23,6 +23,14 @@ const EntryPoint = { // Enable tab views podkopMap.tabbed = true; + // Sections tab + const sectionsSection = podkopMap.section(form.TypedSection, 'section', _('Sections')); + sectionsSection.anonymous = false; + sectionsSection.addremove = true; + sectionsSection.template = 'cbi/simpleform'; + + // Render section content + section.createSectionContent(sectionsSection); // Settings tab const settingsSection = podkopMap.section(form.TypedSection, 'settings', _('Settings')); @@ -35,16 +43,6 @@ const EntryPoint = { settings.createSettingsContent(settingsSection); - // Sections tab - const sectionsSection = podkopMap.section(form.TypedSection, 'section', _('Sections')); - sectionsSection.anonymous = false; - sectionsSection.addremove = true; - sectionsSection.template = 'cbi/simpleform'; - - // Render section content - section.createSectionContent(sectionsSection); - - // Dashboard tab const dashboardSection = podkopMap.section(form.TypedSection, 'dashboard', _('Dashboard')); dashboardSection.anonymous = true;