Fix Bug 58006 - Client.Files.Clouds. The edit icon for the file 'pencil' in the third-party storage folder only disappears after a page refresh.

This commit is contained in:
Alexey Safronov 2022-07-06 17:47:01 +03:00
parent 47b4e2e753
commit 58c9da7e52

View File

@ -221,12 +221,21 @@ class FilesStore {
false
);
this.createThumbnail(id);
this.updateFileStatus(
foundIndex,
this.files[foundIndex].fileStatus & ~FileStatus.IsEditing
);
if (typeof id == "string") {
this.getFileInfo(id);
} else {
this.createThumbnail(id);
}
});
}
updateSelectionStatus = (id, status, isEditing) => {
const index = this.selection.findIndex((x) => x.id === id && x.fileExst);
const index = this.selection.findIndex((x) => x.id === id);
if (index !== -1) {
this.selection[index].fileStatus = status;