From 0f45ae94af42501d9082da0806a746cd6fd1d995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 18 Sep 2025 22:23:10 +0200 Subject: [PATCH] lepszy ux przyciskow --- static/js/chart_controls.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index 771ba8f..6214386 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -60,15 +60,15 @@ document.addEventListener("DOMContentLoaded", function () { // ——— Podział na kategorie ——— toggleCategory?.addEventListener("click", function () { - const active = this.classList.contains("btn-primary"); + const active = this.classList.contains("btn-outline-primary"); if (active) { - this.classList.remove("btn-outline-light"); + this.classList.remove("btn-outline-primary"); this.classList.add("btn-outline-light"); this.setAttribute("aria-pressed", "false"); this.textContent = "Przełącz na kategorie"; window.setCategorySplit(false); } else { - this.classList.add("btn-outline-light"); + this.classList.add("btn-outline-primary"); this.classList.remove("btn-outline-light"); this.setAttribute("aria-pressed", "true"); this.textContent = "Przełącz na sumy";