Good goy
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 47s

This commit is contained in:
2026-06-08 11:24:57 +02:00
parent 0fb4f01892
commit baee3c43b9
3 changed files with 20 additions and 2 deletions

View File

@@ -153,6 +153,7 @@ function buildNoteContextMenu(note) {
}
function buildFolderContextMenu(folder) {
if (!folder || !folder._id) return [];
return [
{ name: 'New Note Here', icon: '/icons/iconoir/regular/plus.svg', action: () => createNoteInFolder(folder._id) },
{ name: 'Rename', icon: '/icons/iconoir/regular/edit-pencil.svg', action: () => renameFolder(folder._id, folder.name) },
@@ -180,8 +181,9 @@ async function deleteNote(note) {
try {
const response = await Server().post('/note/delete', { id: note.key });
if (response.data.status === 'ok') { emit('reload-notes'); emitter.emit('delete-note', note.key); }
} catch (error) {}
HideContextMenu();
} catch (error) {} finally {
HideContextMenu();
}
}
function renameFolder(folderId, name) { CreateWindow('new_folder', { folderId, campaign: props.campaignId, name }); }