From b9fbd376f245771facee4f9e1cbcbe0e5e8680e8 Mon Sep 17 00:00:00 2001 From: Akmal Isomadinov Date: Mon, 19 Aug 2024 19:03:21 +0500 Subject: [PATCH] Client:FilesActionStore: Changed the actions for clicking on the PDF form file now opens for editing --- packages/client/src/store/FilesActionsStore.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/client/src/store/FilesActionsStore.js b/packages/client/src/store/FilesActionsStore.js index 5e0df634bf..2d5ad5ba02 100644 --- a/packages/client/src/store/FilesActionsStore.js +++ b/packages/client/src/store/FilesActionsStore.js @@ -2476,7 +2476,15 @@ class FilesActionStore { ? getObjectByLocation(shareWebUrl)?.share : ""; - return openDocEditor(id, false, shareKey); + const isPDF = item.fileExst === ".pdf"; + + const canEditForm = + isPDF && + item.isPDFForm && + item.security?.EditForm && + !item.startFilling; + + return openDocEditor(id, false, shareKey, canEditForm); } if (isMediaOrImage) {