diff --git a/static/js/chart_controls.js b/static/js/chart_controls.js index 69c8199..47e6135 100644 --- a/static/js/chart_controls.js +++ b/static/js/chart_controls.js @@ -62,16 +62,16 @@ document.addEventListener("DOMContentLoaded", function () { toggleCategory?.addEventListener("click", function () { const active = this.classList.contains("btn-primary"); if (active) { - this.classList.remove("btn-primary"); + this.classList.remove("btn-outline-light"); this.classList.add("btn-outline-light"); this.setAttribute("aria-pressed", "false"); - this.textContent = "Kategorie"; + this.textContent = "Przełącz na kategorie"; window.setCategorySplit(false); } else { - this.classList.add("btn-primary"); + this.classList.add("outline-light"); this.classList.remove("btn-outline-light"); this.setAttribute("aria-pressed", "true"); - this.textContent = "Sumy"; + this.textContent = "Przełącz na sumy"; window.setCategorySplit(true); } diff --git a/templates/expenses.html b/templates/expenses.html index e231606..b782964 100644 --- a/templates/expenses.html +++ b/templates/expenses.html @@ -145,7 +145,7 @@
Kategorie/Sumy wydatków
- +