From 6f184e1083579c57e61421d7a618166c47381171 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Wed, 11 Nov 2020 17:02:50 -0800 Subject: [PATCH] Add loading on status --- Resources/Views/home.leaf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Resources/Views/home.leaf b/Resources/Views/home.leaf index 72268a1..a31734c 100644 --- a/Resources/Views/home.leaf +++ b/Resources/Views/home.leaf @@ -12,7 +12,7 @@

#(service["name"])

- + Status Unavailable @@ -38,9 +38,11 @@ var data = JSON.parse(this.response) if (data.down === "true" || parseInt(data.code) > 500 && parseInt(data.code) < 600 ) { document.getElementById('#(service["name"])Status').classList.add("tag-danger") + document.getElementById('#(service["name"])Status').parentElement.classList.remove("btn-loading") document.getElementById('#(service["name"])Status').innerHTML = "Offline" } else { document.getElementById('#(service["name"])Status').classList.add("tag-success") + document.getElementById('#(service["name"])Status').parentElement.classList.remove("btn-loading") document.getElementById('#(service["name"])Status').innerHTML = "Online" } }