diff --git a/processes-services/src/main/java/org/exoplatform/processes/service/ProcessesAttachmentServiceImpl.java b/processes-services/src/main/java/org/exoplatform/processes/service/ProcessesAttachmentServiceImpl.java index 12e84fd44..d0adae16c 100644 --- a/processes-services/src/main/java/org/exoplatform/processes/service/ProcessesAttachmentServiceImpl.java +++ b/processes-services/src/main/java/org/exoplatform/processes/service/ProcessesAttachmentServiceImpl.java @@ -60,11 +60,11 @@ public class ProcessesAttachmentServiceImpl implements ProcessesAttachmentServic private static final String GROUP_PROCESSES = "*:/platform/processes"; - private static final String DOC_OFORM_MIMETYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.document.form"; + private static final String DOC_OFORM_MIMETYPE = "application/pdf"; - private static final String DOCXF_EXTENSION = ".docxf"; + private static final String DOCXF_EXTENSION = ".pdf"; - private static final String OFORM_EXTENSION = ".oform"; + private static final String OFORM_EXTENSION = ".pdf"; private static final String WORKFLOW_ENTITY_TYPE = "workflow"; diff --git a/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/CreateDocumentForm.vue b/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/CreateDocumentForm.vue index 18466bd3d..952648a2b 100644 --- a/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/CreateDocumentForm.vue +++ b/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/CreateDocumentForm.vue @@ -63,10 +63,10 @@ export default { return { newDocumentTitle: null, NewFormDocInputHidden: true, - extension: '.docxf', + extension: '.pdf', personalDrive: 'Personal Documents', defaultFolder: 'Documents', - templateName: 'OnlyOfficeDocumentForm', + templateName: 'OnlyOfficeDocumentFormPdf', MAX_FILE_NAME_LENGTH: 200 }; }, @@ -150,4 +150,4 @@ export default { } } }; - \ No newline at end of file + diff --git a/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/ProcessesAttachments.vue b/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/ProcessesAttachments.vue index bc20db359..27469c612 100644 --- a/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/ProcessesAttachments.vue +++ b/processes-webapp/src/main/webapp/vue-app/processes/components/attachments-integration/ProcessesAttachments.vue @@ -58,6 +58,7 @@ along with this program. If not, see . :allow-to-detach="false" :open-in-editor="true" :is-file-editable="isFileEditable(attachment)" + :is-file-fillable="isFileFillable(attachment)" allow-to-preview small-attachment-icon /> @@ -133,6 +134,7 @@ export default { } }, created() { + this.initEntityAttachmentsList(); if (this.workflowParentSpace) { this.$spaceService.getSpaceByPrettyName(this.workflowParentSpace.prettyName) @@ -182,7 +184,11 @@ export default { isFileEditable(attachment) { const type = attachment && attachment.mimetype || ''; return this.supportedDocuments && this.supportedDocuments.filter(doc => doc.edit && doc.mimeType === type - && !attachment.cloudDriveFile).length > 0; + && !attachment.cloudDriveFile).length > 0; + }, + isFileFillable(attachment) { + const type = attachment && attachment.mimetype || ''; + return type === 'application/pdf'; }, refreshSupportedDocumentExtensions () { this.supportedDocuments = extensionRegistry.loadExtensions('documents', 'supported-document-types'); @@ -234,4 +240,4 @@ export default { }, } }; - \ No newline at end of file +