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:
parent
47b4e2e753
commit
58c9da7e52
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user