poder elegir página nueva en PagePicker
This commit is contained in:
parent
ad66044607
commit
5b4d9ffa51
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
import { schema } from "../editor/schema";
|
||||
import { makeYdocStore } from "../lib/makeYdocStore";
|
||||
import { lastUpdated } from "../lib/lastUpdated";
|
||||
import { nanoid } from "nanoid";
|
||||
|
||||
type Entry = {
|
||||
id: string;
|
||||
|
@ -54,6 +55,8 @@
|
|||
|
||||
<input type="text" bind:value={filter} placeholder="Buscar..." autofocus />
|
||||
<ul>
|
||||
<button type="button" on:click={() => onChoose(nanoid())}>Página nueva</button
|
||||
>
|
||||
{#each sortedEntries as entry}
|
||||
<li>
|
||||
<button type="button" on:click={() => onChoose(entry.id)}
|
||||
|
|
Loading…
Reference in a new issue