allow duplicating multiple notes at once, closes #1259

This commit is contained in:
zadam
2020-09-23 22:45:51 +02:00
parent 1fcb99fa60
commit a577485e42
3 changed files with 16 additions and 5 deletions

View File

@@ -95,8 +95,8 @@ class TreeContextMenu {
enabled: !clipboard.isClipboardEmpty() && notSearch && noSelectedNotes },
{ title: 'Paste after', command: "pasteNotesAfterFromClipboard", uiIcon: "paste",
enabled: !clipboard.isClipboardEmpty() && isNotRoot && !isHoisted && parentNotSearch && noSelectedNotes },
{ title: "Duplicate note here", command: "duplicateNote", uiIcon: "empty",
enabled: noSelectedNotes && parentNotSearch && isNotRoot && !isHoisted && (!note.isProtected || protectedSessionHolder.isProtectedSessionAvailable()) },
{ title: "Duplicate note(s) here", command: "duplicateNote", uiIcon: "empty",
enabled: parentNotSearch && isNotRoot && !isHoisted },
{ title: "----" },
{ title: "Export", command: "exportNote", uiIcon: "empty",
enabled: notSearch && noSelectedNotes },