{hasOverlay &&
}
diff --git a/client/modules/IDE/components/FileNode.jsx b/client/modules/IDE/components/FileNode.jsx
index e7869f26..d0a10ef8 100644
--- a/client/modules/IDE/components/FileNode.jsx
+++ b/client/modules/IDE/components/FileNode.jsx
@@ -108,10 +108,15 @@ export class FileNode extends React.Component {
handleFileClick = (event) => {
event.stopPropagation();
const { isDeleting } = this.state;
- const { id, setSelectedFile, name } = this.props;
+ const {
+ id, setSelectedFile, name, onClickFile
+ } = this.props;
if (name !== 'root' && !isDeleting) {
setSelectedFile(id);
}
+
+ // debugger; // eslint-disable-line
+ if (onClickFile) { onClickFile(); }
}
handleFileNameChange = (event) => {
@@ -214,7 +219,7 @@ export class FileNode extends React.Component {
renderChild = childId => (
-
+
)
@@ -233,7 +238,7 @@ export class FileNode extends React.Component {
const isRoot = this.props.name === 'root';
return (
-
+
{ !isRoot &&
@@ -382,10 +387,12 @@ FileNode.propTypes = {
hideFolderChildren: PropTypes.func.isRequired,
canEdit: PropTypes.bool.isRequired,
openUploadFileModal: PropTypes.func.isRequired,
- authenticated: PropTypes.bool.isRequired
+ authenticated: PropTypes.bool.isRequired,
+ onClickFile: PropTypes.func
};
FileNode.defaultProps = {
+ onClickFile: null,
parentId: '0',
isSelectedFile: false,
isFolderClosed: false,