From d4502823f4a8716c291af877e35c7350d02ca5e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julius=20H=C3=A4rtl?= <jus@bitgrid.net>
Date: Mon, 24 Aug 2020 14:24:17 +0200
Subject: [PATCH] Add loading indicator until the widget is mounted
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Julius Härtl <jus@bitgrid.net>
---
 apps/dashboard/src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue
index 404f07b8c52..7c4e51d70c7 100644
--- a/apps/dashboard/src/App.vue
+++ b/apps/dashboard/src/App.vue
@@ -19,7 +19,7 @@
 						{{ panels[panelId].title }}
 					</h2>
 				</div>
-				<div class="panel--content">
+				<div class="panel--content" :class="{ loading: !panels[panelId].mounted }">
 					<div :ref="panels[panelId].id" :data-id="panels[panelId].id" />
 				</div>
 			</div>
-- 
GitLab