Compare commits
1 Commits
71f7a13729
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4c8844ff86 |
6
main.js
6
main.js
@@ -1847,8 +1847,8 @@ var GridView = class extends import_obsidian7.ItemView {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await this.app.vault.createFolder(folderPath);
|
await this.app.vault.createFolder(folderPath);
|
||||||
await this.app.vault.create(`${folderPath}/features.md`, "");
|
await this.app.vault.create(`${folderPath}/data.md`, "");
|
||||||
await this.app.vault.create(`${folderPath}/specs.md`, "");
|
await this.app.vault.create(`${folderPath}/detail.md`, "");
|
||||||
this.render();
|
this.render();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(
|
console.error(
|
||||||
@@ -1867,7 +1867,7 @@ var GridView = class extends import_obsidian7.ItemView {
|
|||||||
});
|
});
|
||||||
addFeatureFilesButton.addEventListener("click", async () => {
|
addFeatureFilesButton.addEventListener("click", async () => {
|
||||||
const basePath = this.sourcePath === "/" ? "" : this.sourcePath;
|
const basePath = this.sourcePath === "/" ? "" : this.sourcePath;
|
||||||
const filenames = ["features.md", "specs.md"];
|
const filenames = ["data.md", "detail.md"];
|
||||||
try {
|
try {
|
||||||
for (const filename of filenames) {
|
for (const filename of filenames) {
|
||||||
const filePath = basePath ? `${basePath}/${filename}` : filename;
|
const filePath = basePath ? `${basePath}/${filename}` : filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user