Fix: show print actions for individual documents (#10484)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-02-04 13:49:54 +07:00
committed by GitHub
parent ef96be9274
commit 07aecd727c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1046,7 +1046,7 @@ export function createModel (builder: Builder): void {
label: print.string.PrintToPDF,
icon: print.icon.Print,
category: view.category.General,
input: 'selection',
input: 'any',
target,
context: { mode: ['context', 'browser'], group: 'tools' },
visibilityTester: documents.function.CanPrintDocument,
+1 -1
View File
@@ -21,7 +21,7 @@ export function createModel (builder: Builder): void {
label: print.string.PrintToPDF,
icon: print.icon.Print,
category: view.category.General,
input: 'selection',
input: 'any',
target: core.class.Doc,
context: { mode: ['context', 'browser'], group: 'tools' },
visibilityTester: print.function.CanPrint