Skip to content

Commit

Permalink
fix: remove deprecated usages
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Dec 12, 2024
1 parent ddf68e7 commit 0c68c55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/views/FormBuilder.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,14 @@
{:else if field.input.type === "note"}
<InputFolder
{index}
{app}
bind:folder={field.input.folder}
notifyChange={onChange}
/>
{:else if field.input.type === "folder"}
<InputFolder
{index}
{app}
bind:folder={field.input.parentFolder}
notifyChange={onChange}
/>
Expand Down
3 changes: 2 additions & 1 deletion src/views/components/InputBuilderFolder.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<script lang="ts">
import { Setting } from "obsidian";
import { App, Setting } from "obsidian";
import { FolderSuggest } from "src/suggesters/suggestFolder";
/**
* This component is just to select a folder, not notes inside the folder
*/
export let index: number;
export let folder: string | undefined;
export let app: App;
// This is just used to notify the parent component that the value has changed
// it is useful for example to persis the intermediary state of the form
export let notifyChange: () => void;
Expand Down

0 comments on commit 0c68c55

Please sign in to comment.