Skip to content

Commit 0551c7d

Browse files
committed
fix a few bugs
1 parent fdd5ce0 commit 0551c7d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/fields/button/ButtonBuilderModalComponent.svelte

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@
114114
return 'Open a Link';
115115
} else if (actionType === ButtonActionType.JS) {
116116
return 'Run a JavaScript File';
117+
}else if (actionType === ButtonActionType.INPUT) {
118+
return 'Insert Text at Cursor';
119+
}else if (actionType === ButtonActionType.SLEEP) {
120+
return 'Sleep for Some Time';
121+
}else if (actionType === ButtonActionType.TEMPLATER_CREATE_NOTE) {
122+
return 'Create a New Note Using Templater';
123+
}else if (actionType === ButtonActionType.QUICK_SWITCHER) {
124+
return 'Open the Quick Switcher';
117125
}
118126
}
119127
</script>
@@ -228,7 +236,7 @@ Add action of type
228236
</SettingComponent>
229237

230238
<SettingComponent name="File Name: {action.fileName || 'default'}" description="The file name of the new note.">
231-
<Button variant="primary" on:click={() => changeTemplateFile(action)}>Change</Button>
239+
<input type="text" bind:value={action.fileName} placeholder="some name" />
232240
</SettingComponent>
233241

234242
<SettingComponent name="Open Note" description="Whether to open the new note after this action ran.">

0 commit comments

Comments
 (0)