Skip to content

Commit

Permalink
fix: view pdf at validation page
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 19, 2025
1 parent cca46ed commit e69f09a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/views/Validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -533,13 +533,15 @@ export default {
},
viewDocument() {
if (OCA?.Viewer !== undefined) {
const fileInfo = {
source: this.document.file,
basename: this.document.name,
mime: 'application/pdf',
fileid: this.document.nodeId,
}
OCA.Viewer.open({
fileInfo: {
source: this.document.file,
basename: this.document.name,
mime: 'application/pdf',
fileId: this.document.nodeId,
},
fileInfo,
list: [fileInfo],
})
} else {
window.open(`${this.document.file}?_t=${Date.now()}`)
Expand Down

0 comments on commit e69f09a

Please sign in to comment.