Merge branch 'release/v1.2' of https://github.com/ONLYOFFICE/AppServer into release/v1.2
This commit is contained in:
commit
ab9b73d4e5
@ -179,6 +179,8 @@ const OperationsPanelComponent = (props) => {
|
||||
? t("Translations:CopyHere")
|
||||
: t("Translations:MoveHere")
|
||||
}
|
||||
isRecycleBin={isRecycleBin}
|
||||
currentFolderId={currentFolderId}
|
||||
></SelectFolderDialog>
|
||||
);
|
||||
};
|
||||
|
@ -196,6 +196,8 @@ class SelectFolderDialog extends React.Component {
|
||||
folderTitle,
|
||||
expandedKeys,
|
||||
isDisableButton,
|
||||
isRecycleBin,
|
||||
currentFolderId,
|
||||
} = this.props;
|
||||
const {
|
||||
displayType,
|
||||
@ -234,7 +236,9 @@ class SelectFolderDialog extends React.Component {
|
||||
}
|
||||
isAvailable={isAvailable}
|
||||
isDisableTree={isDisableTree}
|
||||
isDisableButton={isDisableButton}
|
||||
isDisableButton={
|
||||
isDisableButton || (isRecycleBin && currentFolderId === folderId)
|
||||
}
|
||||
/>
|
||||
) : (
|
||||
<SelectionPanel
|
||||
@ -258,7 +262,9 @@ class SelectFolderDialog extends React.Component {
|
||||
isDisableTree={isDisableTree}
|
||||
folderSelection
|
||||
newFilter={this.newFilter}
|
||||
isDisableButton={isDisableButton}
|
||||
isDisableButton={
|
||||
isDisableButton || (isRecycleBin && currentFolderId === folderId)
|
||||
}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user