Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion client/modules/IDE/components/FileNode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,19 @@ class FileNode extends React.Component {
if (
hasEmptyFilename ||
hasNoExtension ||
notSameExtension ||
hasOnlyExtension ||
hasExtensionIfFolder
) {
this.setUpdatedName(currentName);
} else if (notSameExtension) {
const userResponse = window.confirm(
'Are you sure you want to change the file extension?'
);
if (userResponse) {
this.saveUpdatedFileName();
} else {
this.setUpdatedName(currentName);
}
} else {
this.saveUpdatedFileName();
}
Expand Down