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 } },