Web: Files: FilesStore: Restored download-as for edited files

This commit is contained in:
Ilya Oleshko 2021-04-14 12:55:10 +03:00
parent 78dcb14d1e
commit 4ea8375fd2

View File

@ -412,7 +412,7 @@ class FilesStore {
"mark-read", "mark-read",
"mark-as-favorite", "mark-as-favorite",
"download", "download",
//"download-as", "download-as",
"convert", "convert",
"move", //category "move", //category
"move-to", "move-to",
@ -426,6 +426,10 @@ class FilesStore {
"delete", "delete",
]; ];
if (!this.isWebEditSelected) {
fileOptions = this.removeOptions(fileOptions, ["download-as"]);
}
if (!canConvert || isEncrypted) { if (!canConvert || isEncrypted) {
fileOptions = this.removeOptions(fileOptions, ["convert"]); fileOptions = this.removeOptions(fileOptions, ["convert"]);
} }