From e69f09a101352009faf9a172dca97108d15f751b 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 06e64f1f3..f9056649c 100644 --- a/src/views/Validation.vue +++ b/src/views/Validation.vue @@ -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()}`)