(snippetIds: number[])
| 514 | } |
| 515 | |
| 516 | async function deleteSnippets(snippetIds: number[]) { |
| 517 | markPersistedStorageMutation() |
| 518 | await Promise.all( |
| 519 | snippetIds.map(snippetId => |
| 520 | api.snippets.deleteSnippetsById(String(snippetId)), |
| 521 | ), |
| 522 | ) |
| 523 | await getSnippets(queryByLibraryOrFolderOrSearch.value) |
| 524 | } |
| 525 | |
| 526 | async function deleteSelectedSnippets(fallbackSnippet?: SnippetsResponse[0]) { |
| 527 | const { confirm } = useDialog() |
no test coverage detected