Web:Client: fix move to parent folder for folders
This commit is contained in:
parent
c1a889282f
commit
9eb353d1ba
@ -207,7 +207,6 @@ class SelectFolderDialog extends React.Component {
|
||||
selectionFiles,
|
||||
sharedRoomId,
|
||||
resultingFolderTree,
|
||||
id,
|
||||
} = this.props;
|
||||
const { displayType, isLoadingData, isAvailable } = this.state;
|
||||
|
||||
@ -224,7 +223,8 @@ class SelectFolderDialog extends React.Component {
|
||||
|
||||
const buttonIsDisabled =
|
||||
isDisableButton ||
|
||||
(isRecycleBin && currentFolderId === resultingFolderId);
|
||||
(isRecycleBin && currentFolderId === resultingFolderId) ||
|
||||
selectionFiles[0]?.parentId === +resultingFolderId;
|
||||
|
||||
const isCurrentFolder = +currentFolderId === +resultingFolderId;
|
||||
|
||||
|
@ -218,7 +218,7 @@ class SectionHeaderContent extends React.Component {
|
||||
|
||||
onMoveAction = () => {
|
||||
this.props.setIsFolderActions(true);
|
||||
this.props.setBufferSelection(this.props.currentFolderId);
|
||||
this.props.setBufferSelection(this.props.selectedFolder);
|
||||
return this.props.setMoveToPanelVisible(true);
|
||||
};
|
||||
onCopyAction = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user