From 1551a484dcccc3aecfa8989eb6ef73522d098a79 Mon Sep 17 00:00:00 2001 From: AlexeySafronov Date: Tue, 30 Nov 2021 11:35:25 +0300 Subject: [PATCH] Web: Files: Renamed constant --- products/ASC.Files/Client/src/store/FilesStore.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/products/ASC.Files/Client/src/store/FilesStore.js b/products/ASC.Files/Client/src/store/FilesStore.js index a39129166e..050356c5ac 100644 --- a/products/ASC.Files/Client/src/store/FilesStore.js +++ b/products/ASC.Files/Client/src/store/FilesStore.js @@ -489,7 +489,7 @@ class FilesStore { const shouldFillForm = canFormFillingDocs(item.fileExst); const shouldEdit = !shouldFillForm && canWebEdit(item.fileExst); const shouldView = canViewedDocs(item.fileExst); - const isForm = item.fileExst === ".docxf"; + const isMasterForm = item.fileExst === ".docxf"; let fileOptions = [ //"open", @@ -528,7 +528,8 @@ class FilesStore { "delete", ]; - if (!isForm) fileOptions = this.removeOptions(fileOptions, ["make-form"]); + if (!isMasterForm) + fileOptions = this.removeOptions(fileOptions, ["make-form"]); if (!shouldFillForm) fileOptions = this.removeOptions(fileOptions, ["fill-form"]);