fix: Check browser has print ability before showing Print option
This commit is contained in:
@@ -439,7 +439,7 @@ export const printDocument = createAction({
|
||||
isContextMenu ? t("Print") : t("Print document"),
|
||||
section: DocumentSection,
|
||||
icon: <PrintIcon />,
|
||||
visible: ({ activeDocumentId }) => !!activeDocumentId,
|
||||
visible: ({ activeDocumentId }) => !!(activeDocumentId && window.print),
|
||||
perform: async () => {
|
||||
window.print();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user