Web: Files: Added onCloseAside.
This commit is contained in:
parent
b33575e667
commit
dc39d3a83f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user