From 236e37376ed028cd4b9710cbf5a66aea7e84af76 Mon Sep 17 00:00:00 2001 From: Mikhail Chusavitin Date: Mon, 2 Feb 2026 12:45:33 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20properly=20hide=20main=20tab=20content?= =?UTF-8?q?=20when=20pricelists=20tab=20is=20active\n\n-=20Fixed=20tab=20s?= =?UTF-8?q?witching=20logic=20to=20properly=20hide=20main=20tab-content=20?= =?UTF-8?q?when=20pricelists=20tab=20is=20selected\n-=20Ensures=20no=20'?= =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B0...'=20text=20a?= =?UTF-8?q?ppears=20in=20pricelists=20tab\n-=20Maintains=20proper=20tab=20?= =?UTF-8?q?visibility=20for=20all=20other=20tabs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/templates/admin_pricing.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/templates/admin_pricing.html b/web/templates/admin_pricing.html index 03f9a86..c9e5f6c 100644 --- a/web/templates/admin_pricing.html +++ b/web/templates/admin_pricing.html @@ -231,16 +231,19 @@ async function loadTab(tab) { document.getElementById('pagination').className = 'flex justify-between items-center mt-4 pt-4 border-t'; document.getElementById('btn-all-configs').className = 'text-gray-600 hidden'; // Hide this tab for components document.getElementById('pricelists-tab-content').className = 'hidden'; + document.getElementById('tab-content').className = ''; } else if (tab === 'all-configs') { document.getElementById('search-bar').className = 'mb-4 hidden'; // Hide search for all configs document.getElementById('pagination').className = 'flex justify-between items-center mt-4 pt-4 border-t'; // Show pagination document.getElementById('btn-all-configs').className = 'text-blue-600 font-medium'; // Show this tab for all configs document.getElementById('pricelists-tab-content').className = 'hidden'; + document.getElementById('tab-content').className = ''; } else if (tab === 'pricelists') { document.getElementById('search-bar').className = 'mb-4 hidden'; document.getElementById('pagination').className = 'hidden'; document.getElementById('btn-all-configs').className = 'text-gray-600 hidden'; document.getElementById('pricelists-tab-content').className = ''; + document.getElementById('tab-content').className = 'hidden'; // Load pricelists when pricelists tab is selected checkPricelistWritePermission(); loadPricelists(1); @@ -249,6 +252,7 @@ async function loadTab(tab) { document.getElementById('pagination').className = 'hidden'; document.getElementById('btn-all-configs').className = 'text-gray-600 hidden'; document.getElementById('pricelists-tab-content').className = 'hidden'; + document.getElementById('tab-content').className = ''; } if (tab !== 'pricelists') {