From fc049fb9fdd3be56de129d8c06e17bca7c15069a Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Sat, 18 Jan 2025 20:20:42 -0300 Subject: [PATCH] fix: view pdf at validation page Signed-off-by: Vitor Mattos --- src/views/Validation.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/views/Validation.vue b/src/views/Validation.vue index 298346e9d5..d077ee8a51 100644 --- a/src/views/Validation.vue +++ b/src/views/Validation.vue @@ -529,13 +529,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()}`)