From 06618b1e27f77bf710cd7af7eecc6a8f9c27bcab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Thu, 18 Sep 2025 22:31:07 +0200 Subject: [PATCH] lepszy ux przyciskow --- static/js/chart_controls.js | 4 ++-- templates/expenses.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index 5be7f91..6214386 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -60,9 +60,9 @@ document.addEventListener("DOMContentLoaded", function () { // ——— Podział na kategorie ——— toggleCategory?.addEventListener("click", function () { - const active = this.classList.contains("btn-outline-success"); + const active = this.classList.contains("btn-outline-primary"); if (active) { - this.classList.remove("btn-outline-success"); + this.classList.remove("btn-outline-primary"); this.classList.add("btn-outline-light"); this.setAttribute("aria-pressed", "false"); this.textContent = "Przełącz na kategorie"; diff --git a/templates/expenses.html b/templates/expenses.html index 541c906..6cd269b 100644 --- a/templates/expenses.html +++ b/templates/expenses.html @@ -145,7 +145,7 @@
Kategorie/Sumy wydatków
- +