MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / onArchive

Function onArchive

packages/app-core/src/components/NoteList.tsx:177–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 await navigator.clipboard.writeText(`[[${n.title}]]`)
176 }
177 const onArchive = async (): Promise<void> => {
178 await window.zen.archiveNote(n.path)
179 await refreshNotes()
180 if (selectedPath === n.path) await selectNote(null)
181 }
182 const onUnarchive = async (): Promise<void> => {
183 const meta = await window.zen.unarchiveNote(n.path)
184 await refreshNotes()

Callers

nothing calls this directly

Calls 1

archiveNoteMethod · 0.65

Tested by

no test coverage detected