Skip to content

Commit

Permalink
Merge pull request #7108 from owncloud/space-image-readme-reload
Browse files Browse the repository at this point in the history
Fix reload of space image/readme after being updated
  • Loading branch information
JammingBen authored Jun 10, 2022
2 parents c88799d + a883797 commit 4741690
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/bugfix-space-image-readme-loading
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Reload of an updated space-image and/or -readme

We've fixed a bug where the image and/or readme for a space wouldn't reload automatically after being updated.

https://github.com/owncloud/web/pull/7108
6 changes: 4 additions & 2 deletions packages/web-app-files/src/views/spaces/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,8 @@ export default defineComponent({
if (!val) {
return
}
const webDavPathComponents = this.space.spaceImageData.webDavUrl.split('/')
const decodedUri = decodeURI(this.space.spaceImageData.webDavUrl)
const webDavPathComponents = decodedUri.split('/')
const idComponent = webDavPathComponents.find((c) => c.startsWith(this.space.id))
if (!idComponent) {
return
Expand Down Expand Up @@ -295,7 +296,8 @@ export default defineComponent({
if (!val) {
return
}
const webDavPathComponents = this.space.spaceReadmeData.webDavUrl.split('/')
const decodedUri = decodeURI(this.space.spaceReadmeData.webDavUrl)
const webDavPathComponents = decodedUri.split('/')
const idComponent = webDavPathComponents.find((c) => c.startsWith(this.space.id))
if (!idComponent) {
return
Expand Down
3 changes: 2 additions & 1 deletion packages/web-app-files/src/views/spaces/Projects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ export default defineComponent({
continue
}
const webDavPathComponents = space.spaceImageData.webDavUrl.split('/')
const decodedUri = decodeURI(space.spaceImageData.webDavUrl)
const webDavPathComponents = decodedUri.split('/')
const idComponent = webDavPathComponents.find((c) => c.startsWith(space.id))
if (!idComponent) {
return
Expand Down

0 comments on commit 4741690

Please sign in to comment.