File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import joplin from "api" ;
22import { SettingItemType } from "api/types" ;
3- import { parseTempalte } from "./parser" ;
3+ import { parseTemplate } from "./parser" ;
44import { doesFolderExist } from "./utils/folders" ;
55import { getUserTempateSelection } from "./utils/templates" ;
66
@@ -30,7 +30,7 @@ joplin.plugins.register({
3030 execute : async ( ) => {
3131 const template = await getUserTempateSelection ( templatesFolderId ) ;
3232 if ( template ) {
33- await joplin . commands . execute ( "newNote" , await parseTempalte ( template ) ) ;
33+ await joplin . commands . execute ( "newNote" , await parseTemplate ( template ) ) ;
3434 }
3535 }
3636 } ) ;
@@ -41,7 +41,7 @@ joplin.plugins.register({
4141 execute : async ( ) => {
4242 const template = await getUserTempateSelection ( templatesFolderId ) ;
4343 if ( template ) {
44- await joplin . commands . execute ( "newTodo" , await parseTempalte ( template ) ) ;
44+ await joplin . commands . execute ( "newTodo" , await parseTemplate ( template ) ) ;
4545 }
4646 }
4747 } ) ;
@@ -52,7 +52,7 @@ joplin.plugins.register({
5252 execute : async ( ) => {
5353 const template = await getUserTempateSelection ( templatesFolderId ) ;
5454 if ( template ) {
55- await joplin . commands . execute ( "insertText" , await parseTempalte ( template ) ) ;
55+ await joplin . commands . execute ( "insertText" , await parseTemplate ( template ) ) ;
5656 }
5757 }
5858 } ) ;
Original file line number Diff line number Diff line change 1- export const parseTempalte = async ( template : string ) : Promise < string > => {
1+ export const parseTemplate = async ( template : string ) : Promise < string > => {
22 return template ;
33}
You can’t perform that action at this time.
0 commit comments