diff --git a/pos/static/js/config.js b/pos/static/js/config.js index 836dbd2..e61ca6f 100644 --- a/pos/static/js/config.js +++ b/pos/static/js/config.js @@ -57,7 +57,7 @@ const Config = (() => { // ------------------------------------------------------------------------- function setTheme(theme) { document.documentElement.setAttribute('data-theme', theme); - try { localStorage.setItem('nexus-theme', theme); } catch(e) {} + try { localStorage.setItem('pos_theme', theme); } catch(e) {} document.querySelectorAll('.theme-btn').forEach(function(btn) { btn.classList.toggle('is-active', btn.dataset.themeTarget === theme); @@ -802,7 +802,7 @@ const Config = (() => { // Restore theme try { - var saved = localStorage.getItem('nexus-theme'); + var saved = localStorage.getItem('pos_theme'); if (saved === 'industrial' || saved === 'modern') { setTheme(saved); } diff --git a/pos/static/js/dashboard.js b/pos/static/js/dashboard.js index 96c8591..4309215 100644 --- a/pos/static/js/dashboard.js +++ b/pos/static/js/dashboard.js @@ -48,7 +48,7 @@ const Dashboard = (() => { // ------------------------------------------------------------------------- function setTheme(theme) { document.documentElement.setAttribute('data-theme', theme); - try { localStorage.setItem('nexus-theme', theme); } catch(e) {} + try { localStorage.setItem('pos_theme', theme); } catch(e) {} const btnInd = document.getElementById('btn-industrial'); const btnMod = document.getElementById('btn-modern'); if (btnInd) btnInd.classList.toggle('active', theme === 'industrial'); @@ -689,7 +689,7 @@ const Dashboard = (() => { // Restore theme try { - const saved = localStorage.getItem('nexus-theme'); + const saved = localStorage.getItem('pos_theme'); if (saved === 'industrial' || saved === 'modern') { setTheme(saved); } diff --git a/pos/static/js/reports.js b/pos/static/js/reports.js index 7e78c2d..4b9cf3e 100644 --- a/pos/static/js/reports.js +++ b/pos/static/js/reports.js @@ -61,7 +61,7 @@ const Reports = (() => { // ------------------------------------------------------------------------- function setTheme(theme) { document.documentElement.setAttribute('data-theme', theme); - try { localStorage.setItem('nexus-theme', theme); } catch(e) {} + try { localStorage.setItem('pos_theme', theme); } catch(e) {} var btnInd = document.getElementById('btn-industrial'); var btnMod = document.getElementById('btn-modern'); if (btnInd) btnInd.classList.toggle('is-active', theme === 'industrial'); @@ -745,7 +745,7 @@ const Reports = (() => { // Restore theme try { - var saved = localStorage.getItem('nexus-theme') || 'industrial'; + var saved = localStorage.getItem('pos_theme') || 'industrial'; setTheme(saved); } catch(e) {} diff --git a/pos/templates/inventory.html b/pos/templates/inventory.html index 4e9409c..5a23c89 100644 --- a/pos/templates/inventory.html +++ b/pos/templates/inventory.html @@ -644,13 +644,13 @@ }); // Persist preference - try { localStorage.setItem('nexus-theme', theme); } catch(e) {} + try { localStorage.setItem('pos_theme', theme); } catch(e) {} } // Restore on load (function() { var saved; - try { saved = localStorage.getItem('nexus-theme'); } catch(e) {} + try { saved = localStorage.getItem('pos_theme'); } catch(e) {} if (saved === 'industrial' || saved === 'modern') { setTheme(saved); }