From 990a88a340d34398c31d08edbc58aaf1812470b8 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 3 Aug 2022 07:20:30 +0100 Subject: [PATCH] Show loading indicator --- core/templates/base.html | 10 ++++++++++ core/templates/ui/drilldown/drilldown.html | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/core/templates/base.html b/core/templates/base.html index bc20c8c..d20cc8c 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -51,6 +51,16 @@ .slider-output { width: 4rem !important; } + .htmx-indicator{ + opacity:0; + transition: opacity 500ms ease-in; + } + .htmx-request .htmx-indicator{ + opacity:1 + } + .htmx-request.htmx-indicator{ + opacity:1 + } diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 109f36d..9b2a067 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -6,7 +6,8 @@
+ hx-swap="innerHTML" + hx-indicator="#spinner"> {% csrf_token %}
@@ -42,6 +43,7 @@ class="button is-light has-text-link is-right"> Options
+ Static