From ebe14e0125905ea7a06d1db9c6c01b762004ce9a Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Fri, 21 Mar 2025 10:42:11 +0100 Subject: [PATCH] Add loading spinner to Global Status component during data fetch --- .../global-status/global-status.component.css | 16 ++++ .../global-status.component.html | 80 ++++++++++--------- 2 files changed, 57 insertions(+), 39 deletions(-) diff --git a/ogWebconsole/src/app/components/global-status/global-status.component.css b/ogWebconsole/src/app/components/global-status/global-status.component.css index 667f99d..12445da 100644 --- a/ogWebconsole/src/app/components/global-status/global-status.component.css +++ b/ogWebconsole/src/app/components/global-status/global-status.component.css @@ -13,4 +13,20 @@ mat-dialog-content { justify-content: flex-end; gap: 1em; padding: 1.5em; +} + +.spinner-container { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 1000; +} + +.loading-spinner { + width: 100px; + height: 100px; } \ No newline at end of file diff --git a/ogWebconsole/src/app/components/global-status/global-status.component.html b/ogWebconsole/src/app/components/global-status/global-status.component.html index d6f2044..552b703 100644 --- a/ogWebconsole/src/app/components/global-status/global-status.component.html +++ b/ogWebconsole/src/app/components/global-status/global-status.component.html @@ -1,46 +1,48 @@
-

{{'GlobalStatus' | translate}}

+

{{'GlobalStatus' | translate}}

- - - - -
- - -
-
+ +
+ +
+ + +
+ + +
+
- -
- - -
-
+ +
+ + +
+
- Content 3 -
+ Content 3 +
- + \ No newline at end of file