()
| 647 | } |
| 648 | |
| 649 | async 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 | |
| 663 | function selectSnippet(snippetId: number, withShift = false) { |
| 664 | if (!withShift) { |
nothing calls this directly
no test coverage detected