From e270e848d79be9495c7d0d62868db0c40f561fe4 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Fri, 3 Jul 2026 08:05:27 +0000 Subject: [PATCH] fix(config): use cfg-tab-btn style for permissions tabs --- pos/static/js/config.js | 8 ++++---- pos/templates/config.html | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pos/static/js/config.js b/pos/static/js/config.js index 55d6d00..428c193 100644 --- a/pos/static/js/config.js +++ b/pos/static/js/config.js @@ -1205,11 +1205,11 @@ const Config = (() => { function switchPermTab(tab) { _currentPermTab = tab; - document.querySelectorAll('#perm-panel-modules, #perm-panel-workshop').forEach(function(el) { el.style.display = 'none'; el.classList.remove('is-active'); }); - document.querySelectorAll('#tab-perm-modules, #tab-perm-workshop').forEach(function(el) { el.classList.remove('is-active'); }); + document.querySelectorAll('#perm-panel-modules, #perm-panel-workshop').forEach(function(el) { el.style.display = 'none'; el.classList.remove('active'); }); + document.querySelectorAll('#tab-perm-modules, #tab-perm-workshop').forEach(function(el) { el.classList.remove('active'); }); document.getElementById('perm-panel-' + tab).style.display = 'block'; - document.getElementById('perm-panel-' + tab).classList.add('is-active'); - document.getElementById('tab-perm-' + tab).classList.add('is-active'); + document.getElementById('perm-panel-' + tab).classList.add('active'); + document.getElementById('tab-perm-' + tab).classList.add('active'); } // ------------------------------------------------------------------------- diff --git a/pos/templates/config.html b/pos/templates/config.html index 1ceebe6..0cf6284 100644 --- a/pos/templates/config.html +++ b/pos/templates/config.html @@ -867,12 +867,12 @@ -
- - +
+ +
-
+

Selecciona un rol para ver y editar sus permisos.

@@ -882,7 +882,7 @@
-