MCPcopy Create free account
hub / github.com/massCodeIO/massCode / emptyTrash

Function emptyTrash

src/renderer/composables/useSnippets.ts:649–661  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

647}
648
649async function emptyTrash() {
650 const { confirm } = useDialog()
651
652 const isConfirmed = await confirm({
653 title: i18n.t('messages:confirm.emptyTrash'),
654 content: i18n.t('messages:warning.noUndo'),
655 })
656
657 if (isConfirmed) {
658 await api.snippets.deleteSnippetsTrash()
659 await getSnippets(queryByLibraryOrFolderOrSearch.value)
660 }
661}
662
663function selectSnippet(snippetId: number, withShift = false) {
664 if (!withShift) {

Callers

nothing calls this directly

Calls 3

useDialogFunction · 0.85
confirmFunction · 0.85
getSnippetsFunction · 0.70

Tested by

no test coverage detected