Skip to content

Commit

Permalink
Merge pull request #7366 from owncloud/fix-resource-loading-state-pro…
Browse files Browse the repository at this point in the history
…ject-spaces-overview

fix: loading state in projects view
  • Loading branch information
kulmann authored Jul 28, 2022
2 parents b54bf74 + cd14956 commit 9b61923
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/bugfix-loading-state-in-views
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down

0 comments on commit 9b61923

Please sign in to comment.