Fixed Bug 57445: Client: Files: Added property to restore selection after fetching items

This commit is contained in:
Ilya Oleshko 2022-06-09 10:44:13 +03:00
parent 2ca378643d
commit 95e7d85c53
2 changed files with 7 additions and 3 deletions

View File

@ -569,7 +569,8 @@ class FilesStore {
folderId,
filter,
clearFilter = true,
withSubfolders = false
withSubfolders = false,
clearSelection = true
) => {
const {
treeFolders,
@ -646,7 +647,9 @@ class FilesStore {
if (clearFilter) {
this.fileActionStore.setAction({ type: null });
this.setSelected("close");
if (clearSelection) {
this.setSelected("close");
}
}
const navigationPath = await Promise.all(

View File

@ -1188,7 +1188,8 @@ class UploadDataStore {
updatedFolder,
newFilter ? newFilter : filter,
true,
true
true,
false
).finally(() => {
this.clearActiveOperations(fileIds, folderIds);
setTimeout(() => clearSecondaryProgressData(), TIMEOUT);