fixed bad commit and reverted prior to create note. Also added note id linking for iframe

This commit is contained in:
2026-02-27 13:53:08 -06:00
parent ef935ac37b
commit b59e2c2187
4 changed files with 272 additions and 109 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ const App: Component = () => {
<Suspense fallback={<div class="flex items-center justify-center h-full"><div class="animate-spin rounded-full h-8 w-8 border-b-2 border-primary"></div></div>}>
<Show when={getEmbedView() === 'embed_notes'}>
{(() => {
const [selectedNoteId, setSelectedNoteId] = createSignal<string | null>(null);
const searchParams = new URLSearchParams(window.location.search);
const noteIdFromUrl = searchParams.get('noteId');
const [selectedNoteId, setSelectedNoteId] = createSignal<string | null>(noteIdFromUrl);
return <NotepadView selectedNoteId={selectedNoteId()} setSelectedNoteId={setSelectedNoteId} />;
})()}
</Show>