Web: Files: Renamed constant

This commit is contained in:
Alexey Safronov 2021-11-30 11:35:25 +03:00
parent 425fe34629
commit 1551a484dc

View File

@ -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"]);