From 7f56a3537cced373e88e9320398e5a604023953d Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 27 Mar 2022 19:56:56 +0000 Subject: [PATCH] fix: load the list tasks only after the list itself was loaded (#1251) Currently, when opening a list sometimes the tasks are shown before the list itself is loaded. Because the list contains the rights, this means no edit buttons etc are available at that point which is pretty confusing. This PR ensures the list-specific view is loaded only after the list itself is loaded. Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1251 --- src/components/home/contentAuth.vue | 5 +++++ src/views/list/ListWrapper.vue | 23 ++++++++++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/components/home/contentAuth.vue b/src/components/home/contentAuth.vue index 8bf71c72c..d6883635d 100644 --- a/src/components/home/contentAuth.vue +++ b/src/components/home/contentAuth.vue @@ -236,6 +236,11 @@ store.dispatch('labels/loadAllLabels') .app-content { padding: $navbar-height + 1.5rem 1.5rem 1rem 1.5rem; + // Used to make sure the spinner is always in the middle while loading + > .loader-container { + min-height: calc(100vh - #{$navbar-height + 1.5rem + 1rem}); + } + @media screen and (max-width: $tablet) { margin-left: 0; padding-top: 1.5rem; diff --git a/src/views/list/ListWrapper.vue b/src/views/list/ListWrapper.vue index 9b3911a7c..b1cb68ba6 100644 --- a/src/views/list/ListWrapper.vue +++ b/src/views/list/ListWrapper.vue @@ -42,12 +42,12 @@ - +