From 4ea8375fd2a54d11c37c8e6ec66c78926a9ec8d9 Mon Sep 17 00:00:00 2001 From: Ilya Oleshko Date: Wed, 14 Apr 2021 12:55:10 +0300 Subject: [PATCH] Web: Files: FilesStore: Restored download-as for edited files --- products/ASC.Files/Client/src/store/FilesStore.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/products/ASC.Files/Client/src/store/FilesStore.js b/products/ASC.Files/Client/src/store/FilesStore.js index df0ba758b1..0ae45a1c33 100644 --- a/products/ASC.Files/Client/src/store/FilesStore.js +++ b/products/ASC.Files/Client/src/store/FilesStore.js @@ -412,7 +412,7 @@ class FilesStore { "mark-read", "mark-as-favorite", "download", - //"download-as", + "download-as", "convert", "move", //category "move-to", @@ -426,6 +426,10 @@ class FilesStore { "delete", ]; + if (!this.isWebEditSelected) { + fileOptions = this.removeOptions(fileOptions, ["download-as"]); + } + if (!canConvert || isEncrypted) { fileOptions = this.removeOptions(fileOptions, ["convert"]); }