|
|
@ -90,7 +90,7 @@ function addFile(fileName) { |
|
|
|
name: isContract ? "Contract" : fileName, |
|
|
|
documentId: fileName, |
|
|
|
isText: isContract || extension === ".html" || extension === ".js", |
|
|
|
isContract: fileData, |
|
|
|
isContract: isContract, |
|
|
|
}; |
|
|
|
|
|
|
|
projectListModel.append(fileData); |
|
|
@ -130,7 +130,7 @@ function doCreateProject(title, path) { |
|
|
|
var contractsFile = "contracts.sol"; |
|
|
|
var projectData = { |
|
|
|
title: title, |
|
|
|
files: [ indexFile, contractsFile ] |
|
|
|
files: [ contractsFile, indexFile ] |
|
|
|
}; |
|
|
|
//TODO: copy from template
|
|
|
|
fileIo.writeFile(dirPath + indexFile, "<html></html>"); |
|
|
|