Browse Source

Remove modal in checkUploadFile()

HEAD
Yang Luo 2 years ago
parent
commit
9e9888d002
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      web/src/FileTree.js

+ 6
- 4
web/src/FileTree.js View File

@@ -103,10 +103,12 @@ class FileTree extends React.Component {
} }


checkUploadFile(info) { checkUploadFile(info) {
for (let i = 0; i < info.fileList.length; i++) {
const filename = info.fileList[i].name;
if (this.getCacheApp(filename) === "" && filename.endsWith(".txt")) {
return true;
if (Conf.EnableExtraPages) {
for (let i = 0; i < info.fileList.length; i++) {
const filename = info.fileList[i].name;
if (this.getCacheApp(filename) === "" && filename.endsWith(".txt")) {
return true;
}
} }
} }
return false; return false;


Loading…
Cancel
Save