From cd149565639ed8fcb5cb6f9c53c47a7e9e4d1a70 Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Thu, 28 Jul 2022 12:33:00 +0200 Subject: [PATCH] fix: loading state in projects view --- changelog/unreleased/bugfix-loading-state-in-views | 1 + packages/web-app-files/src/views/spaces/Projects.vue | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/changelog/unreleased/bugfix-loading-state-in-views b/changelog/unreleased/bugfix-loading-state-in-views index 1851d956bfe..b2f0214cb65 100644 --- a/changelog/unreleased/bugfix-loading-state-in-views +++ b/changelog/unreleased/bugfix-loading-state-in-views @@ -3,3 +3,4 @@ Bugfix: Loading state in views We fixed a small glitch in views of the files app, where the view would show a state like "Resource not found" in the brief moment before the resource loading started. Now the views correctly start in a loading state. https://github.com/owncloud/web/pull/7325 +https://github.com/owncloud/web/pull/7366 diff --git a/packages/web-app-files/src/views/spaces/Projects.vue b/packages/web-app-files/src/views/spaces/Projects.vue index 76c6dc9a725..2afd0f55f64 100644 --- a/packages/web-app-files/src/views/spaces/Projects.vue +++ b/packages/web-app-files/src/views/spaces/Projects.vue @@ -178,11 +178,15 @@ export default defineComponent({ loadedSpaces = loadedSpaces.map(buildSpace) ref.LOAD_FILES({ currentFolder: null, files: loadedSpaces }) }) + const areResourcesLoading = computed(() => { + return loadResourcesTask.isRunning || !loadResourcesTask.last + }) return { spaces, graphClient, loadResourcesTask, + areResourcesLoading, accessToken } },