Web: Files: Added onCloseAside.

This commit is contained in:
Tatiana Lopaeva 2022-04-15 11:10:56 +03:00
parent b33575e667
commit dc39d3a83f

View File

@ -133,12 +133,17 @@ class SelectFolderDialog extends React.Component {
onClose = () => {
const { setExpandedPanelKeys, onClose, treeFolders } = this.props;
if (!treeFolders) {
if (!treeFolders.length) {
setExpandedPanelKeys(null);
}
onClose && onClose();
};
onCloseAside = () => {
const { onClose } = this.props;
onClose && onClose();
};
onButtonClick = (e) => {
const {
onSave,
@ -202,7 +207,7 @@ class SelectFolderDialog extends React.Component {
t={t}
isPanelVisible={isPanelVisible}
zIndex={zIndex}
onClose={this.onClose}
onClose={this.onCloseAside}
withoutProvider={withoutProvider}
isNeedArrowIcon={isNeedArrowIcon}
certainFolders={true}