(tagId: number, snippetId: number)
| 633 | } |
| 634 | |
| 635 | async function deleteTagFromSnippet(tagId: number, snippetId: number) { |
| 636 | try { |
| 637 | await api.snippets.deleteSnippetsByIdTagsByTagId( |
| 638 | String(snippetId), |
| 639 | String(tagId), |
| 640 | ) |
| 641 | await getSnippets(queryByLibraryOrFolderOrSearch.value) |
| 642 | await refreshSelectedSnippet() |
| 643 | } |
| 644 | catch (error) { |
| 645 | console.error(error) |
| 646 | } |
| 647 | } |
| 648 | |
| 649 | async function emptyTrash() { |
| 650 | const { confirm } = useDialog() |
nothing calls this directly
no test coverage detected