mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
web: add support for printing notes (#2551)
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
@@ -373,6 +373,18 @@ const menuItems = [
|
||||
items: colorsToMenuItems()
|
||||
},
|
||||
{ key: "sep2", type: "separator" },
|
||||
{
|
||||
key: "print",
|
||||
title: "Print",
|
||||
disabled: ({ note }) => {
|
||||
if (!db.notes.note(note.id).synced()) return notFullySyncedText;
|
||||
if (note.locked) return "Locked notes cannot be printed.";
|
||||
},
|
||||
icon: Icon.Print,
|
||||
onClick: async ({ note }) => {
|
||||
await exportNotes("pdf", [note.id]);
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "publish",
|
||||
disabled: ({ note }) => {
|
||||
|
||||
Reference in New Issue
Block a user