From d23976334cd2afedd94b54046887a9a80b1c2306 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 10 Mar 2022 15:52:18 -0800 Subject: [PATCH] Let the user provide their own text for the spinner. --- frontends/etiquette_flask/static/js/spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/spinner.js b/frontends/etiquette_flask/static/js/spinner.js index cdebc01..1bf92b2 100644 --- a/frontends/etiquette_flask/static/js/spinner.js +++ b/frontends/etiquette_flask/static/js/spinner.js @@ -138,7 +138,7 @@ function init_button_with_spinner() else { spinner_element = document.createElement("span"); - spinner_element.innerText = "Working..."; + spinner_element.innerText = button.dataset.spinnerText || "Working..."; spinner_element.classList.add("hidden"); holder.appendChild(spinner_element); }