Skip to content

Commit

Permalink
Merge pull request #2477 from nextcloud/backport/2468/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(faces): Fix call to Viewer.open
  • Loading branch information
marcelklehr authored May 13, 2024
2 parents 2628390 + 12d0d8d commit 4f532ac
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 22 deletions.
4 changes: 2 additions & 2 deletions js/photos-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-public.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-src_views_FaceContent_vue.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-src_views_FaceContent_vue.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/views/FaceContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,8 @@ export default {
openViewer(fileId) {
const file = this.files[fileId]
OCA.Viewer.open({
// remove /username/files/ from the start
path: '/' + file.filename.split('/').slice(3).join('/'),
list: this.faceFileIds.map(fileId => ({
...this.files[fileId],
basename: this.files[fileId].basename.split('-').slice(1).join('-'),
})).filter(file => !file.sectionHeader),
list: this.faceFileIds.map(fileId => ({ ...this.files[fileId], filename: '/' + this.files[fileId].filename.split('/').slice(3).join('/') })),
loadMore: file.loadMore ? async () => await file.loadMore(true) : () => [],
canLoop: file.canLoop,
})
Expand Down
6 changes: 1 addition & 5 deletions src/views/UnassignedFaces.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,8 @@ export default {
openViewer(fileId) {
const file = this.files[fileId]
OCA.Viewer.open({
// remove /username/files/ from the start
path: '/' + file.filename.split('/').slice(3).join('/'),
list: this.faceFileIds.map(fileId => ({
...this.files[fileId],
basename: this.files[fileId].basename.split('-').slice(1).join('-'),
})).filter(file => !file.sectionHeader),
list: this.faceFileIds.map(fileId => ({ ...this.files[fileId], filename: '/' + this.files[fileId].filename.split('/').slice(3).join('/') })),
loadMore: file.loadMore ? async () => await file.loadMore(true) : () => [],
canLoop: file.canLoop,
})
Expand Down

0 comments on commit 4f532ac

Please sign in to comment.