From 2dbb5a2d093f8cd3aaf9236135b86cbf85610246 Mon Sep 17 00:00:00 2001 From: distributive Date: Mon, 26 Sep 2022 10:48:38 +0100 Subject: [PATCH] Moved loading indicator code to shared constant --- app/Resources/views/Banlists/banlists.html.twig | 2 +- app/Resources/views/Formats/formats.html.twig | 2 +- app/Resources/views/layout.html.twig | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Resources/views/Banlists/banlists.html.twig b/app/Resources/views/Banlists/banlists.html.twig index d55e687a..a0dd1de6 100644 --- a/app/Resources/views/Banlists/banlists.html.twig +++ b/app/Resources/views/Banlists/banlists.html.twig @@ -66,7 +66,7 @@ async function buildBanlistsView() { $('#restrictions-root').show(); // Add a temporary loading indicator - $('.tab-pane').append('

Loading...

'); + $('.tab-pane').append(loading_icon); // Load data from API const desiredFormats = ['startup', 'standard', 'eternal']; diff --git a/app/Resources/views/Formats/formats.html.twig b/app/Resources/views/Formats/formats.html.twig index 64288ad9..3cfed299 100644 --- a/app/Resources/views/Formats/formats.html.twig +++ b/app/Resources/views/Formats/formats.html.twig @@ -25,7 +25,7 @@ {% if app.environment == 'prod' %}