File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
packages/core/src/modals/modalContents/buttonBuilder Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 77 import type { ButtonBuilderModal } from ' packages/core/src/modals/modalContents/buttonBuilder/ButtonBuilderModal' ;
88 import CommandActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/CommandActionSettings.svelte' ;
99 import CreateNoteActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/CreateNoteActionSettings.svelte' ;
10+ import RunTemplaterFileActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/RunTemplaterFileActionSettings.svelte' ;
1011 import InlineJsActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/InlineJsActionSettings.svelte' ;
1112 import InputActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/InputActionSettings.svelte' ;
1213 import InsertIntoNoteActionSettings from ' packages/core/src/modals/modalContents/buttonBuilder/InsertIntoNoteActionSettings.svelte' ;
@@ -220,6 +221,10 @@ Add action of type
220221 <CreateNoteActionSettings action ={action } plugin ={plugin }></CreateNoteActionSettings >
221222 {/if }
222223
224+ {#if action .type === ButtonActionType .RUN_TEMPLATER_FILE }
225+ <RunTemplaterFileActionSettings action ={action } plugin ={plugin }></RunTemplaterFileActionSettings >
226+ {/if }
227+
223228 {#if action .type === ButtonActionType .REPLACE_IN_NOTE }
224229 <ReplaceInNoteActionSettings action ={action } plugin ={plugin }></ReplaceInNoteActionSettings >
225230 {/if }
Original file line number Diff line number Diff line change 1+ <script lang =" ts" >
2+ import type { ButtonAction , RunTemplaterFileButtonAction } from ' packages/core/src/config/ButtonConfig' ;
3+ import { ButtonActionType , ButtonStyleType } from ' packages/core/src/config/ButtonConfig' ;
4+ import type { IPlugin } from ' packages/core/src/IPlugin' ;
5+ import Button from ' packages/core/src/utils/components/Button.svelte' ;
6+ import SettingComponent from ' packages/core/src/utils/components/SettingComponent.svelte' ;
7+ import Toggle from ' packages/core/src/utils/components/Toggle.svelte' ;
8+
9+ const {
10+ plugin,
11+ action,
12+ }: {
13+ plugin: IPlugin ;
14+ action: RunTemplaterFileButtonAction ;
15+ } = $props ();
16+
17+ </script >
18+
19+ <SettingComponent name ="File path: {action .templateFile || ' default' }" description =" The path from the vault to the templater file." >
20+ <input type ="text" bind:value ={action .templateFile } placeholder =" some path" />
21+ </SettingComponent >
22+
23+
You can’t perform that action at this time.
0 commit comments