From 34fc8ab7561902bdc85ab64bc457b8419510d69e Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Mon, 25 Jul 2022 11:38:45 +0200 Subject: [PATCH 1/3] fix: render loading state before loading before loading starts --- changelog/unreleased/bugfix-loading-state-in-views | 5 +++++ packages/web-app-files/src/components/TrashBin.vue | 2 +- .../resourcesViewDefaults/useResourcesViewDefaults.ts | 5 +++++ packages/web-app-files/src/views/Favorites.vue | 2 +- packages/web-app-files/src/views/Personal.vue | 2 +- packages/web-app-files/src/views/PublicFiles.vue | 2 +- .../web-app-files/src/views/shares/SharedResource.vue | 2 +- .../web-app-files/src/views/shares/SharedViaLink.vue | 2 +- .../web-app-files/src/views/shares/SharedWithMe.vue | 10 ++++------ .../src/views/shares/SharedWithOthers.vue | 2 +- packages/web-app-files/src/views/spaces/Project.vue | 2 +- packages/web-app-files/src/views/spaces/Projects.vue | 2 +- .../tests/unit/components/TrashBin.spec.js | 2 +- .../web-app-files/tests/unit/views/Favorites.spec.js | 2 +- .../web-app-files/tests/unit/views/Personal.spec.js | 2 +- .../web-app-files/tests/unit/views/PublicFiles.spec.ts | 2 +- .../tests/unit/views/shares/SharedViaLink.spec.js | 2 +- .../tests/unit/views/shares/SharedWithMe.spec.js | 2 +- .../tests/unit/views/shares/SharedWithOthers.spec.js | 2 +- .../web-app-files/tests/unit/views/views.shared.ts | 5 ++++- .../unit/components/SidebarNav/SidebarNavItem.spec.js | 2 +- 21 files changed, 35 insertions(+), 24 deletions(-) create mode 100644 changelog/unreleased/bugfix-loading-state-in-views diff --git a/changelog/unreleased/bugfix-loading-state-in-views b/changelog/unreleased/bugfix-loading-state-in-views new file mode 100644 index 00000000000..1851d956bfe --- /dev/null +++ b/changelog/unreleased/bugfix-loading-state-in-views @@ -0,0 +1,5 @@ +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 diff --git a/packages/web-app-files/src/components/TrashBin.vue b/packages/web-app-files/src/components/TrashBin.vue index c70a225e020..ad50be85a89 100644 --- a/packages/web-app-files/src/components/TrashBin.vue +++ b/packages/web-app-files/src/components/TrashBin.vue @@ -1,7 +1,7 @@