From e3ae7a4e94d2356d5cbfd9346a8047720cf56868 Mon Sep 17 00:00:00 2001 From: "andrea.terzani" Date: Mon, 21 Oct 2024 16:43:49 +0200 Subject: [PATCH] Refactor layout components and add loading state - Refactor the layout components to improve code organization and readability. - Add a new store called LoadingStore to manage the loading state. - Update AppLayout.vue, AppMenu.vue, AppTopbar.vue, ScenarioStore.js, and UserPrefStore.js to import and use the LoadingStore. - Add loading indicators in AppTopbar.vue and ScenarioList.vue components. --- src/layout/AppLayout.vue | 1 + src/layout/AppMenu.vue | 3 +++ src/layout/AppTopbar.vue | 5 +++++ src/stores/LoadingStore.js | 21 +++++++++++++++++++++ src/stores/ScenarioStore.js | 20 +++++++++++++++++--- src/stores/UserPrefStore.js | 7 ++++++- src/views/pages/ScenarioList.vue | 10 +++------- 7 files changed, 56 insertions(+), 11 deletions(-) create mode 100644 src/stores/LoadingStore.js diff --git a/src/layout/AppLayout.vue b/src/layout/AppLayout.vue index 6c98b38..16b70ed 100644 --- a/src/layout/AppLayout.vue +++ b/src/layout/AppLayout.vue @@ -64,6 +64,7 @@ const isOutsideClicked = (event) => {
+
diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue index fad86de..a610122 100644 --- a/src/layout/AppMenu.vue +++ b/src/layout/AppMenu.vue @@ -1,8 +1,11 @@