Skip to content

Commit

Permalink
Merge pull request #374 from ONLYOFFICE/bugfix/Bug-52940
Browse files Browse the repository at this point in the history
Fixed Bug 52940 - Client.Files. Fixed display of the "download as" bu…
  • Loading branch information
AlexeySafronov authored Oct 5, 2021
2 parents d0229aa + 17515d7 commit 2ae932e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions products/ASC.Files/Client/src/store/FilesStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,13 @@ class FilesStore {
other: [],
};

for (let item of this.selection) {
const selection = this.selection.length
? this.selection
: this.bufferSelection
? [this.bufferSelection]
: [];

for (let item of selection) {
item.checked = true;
item.format = null;

Expand Down Expand Up @@ -1362,7 +1368,13 @@ class FilesStore {
get isWebEditSelected() {
const { filesConverts } = this.formatsStore.docserviceStore;

return this.selection.some((selected) => {
const selection = this.selection.length
? this.selection
: this.bufferSelection
? [this.bufferSelection]
: [];

return selection.some((selected) => {
if (selected.isFolder === true || !selected.fileExst) return false;
const index = filesConverts.findIndex((f) => f[selected.fileExst]);
return index !== -1;
Expand Down

0 comments on commit 2ae932e

Please sign in to comment.