Skip to content

Commit

Permalink
feat: add data handler attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <luka@nextcloud.com>
  • Loading branch information
luka-nextcloud committed Jul 20, 2022
1 parent 8c6e660 commit e4062b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
:title="currentFile.basename"
:view="currentFile.modal"
class="viewer"
:data-handler="handlerId"
@close="close"
@previous="previous"
@next="next">
Expand Down Expand Up @@ -187,6 +188,7 @@ export default {
isStandalone: !(OCA && OCA.Files && 'fileActions' in OCA.Files),
theme: null,
root: getRootPath(),
handlerId: '',
}
},

Expand Down Expand Up @@ -405,6 +407,8 @@ export default {
return
}

this.handlerId = handler.id

// check if part of a group, if so retrieve full files list
const group = this.mimeGroups[mime]
if (this.files && this.files.length > 0) {
Expand Down

0 comments on commit e4062b2

Please sign in to comment.