From cacdd6419037fe47c7f82ac5fa2a06388698d4ac Mon Sep 17 00:00:00 2001 From: Tayeb Chlyah Date: Wed, 25 Mar 2026 15:52:25 +0400 Subject: [PATCH] feat(client): add PDF download option to page toolbar --- client/themes/default/components/page.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index 822e739f..8dcff643 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -218,6 +218,11 @@ v-btn(icon, tile, v-on='on', @click='print', :aria-label='$t(`common:page.printFormat`)') v-icon(:color='printView ? `primary` : `grey`') mdi-printer span {{$t('common:page.printFormat')}} + v-tooltip(bottom) + template(v-slot:activator='{ on }') + v-btn(icon, tile, v-on='on', @click='downloadPdf', aria-label='Download PDF') + v-icon(color='grey') mdi-file-pdf-box + span Download PDF v-spacer v-flex.page-col-content( @@ -676,6 +681,10 @@ export default { }) } }, + downloadPdf () { + const url = `/n8n/webhook/pdf?path=${encodeURIComponent(window.location.pathname)}` + window.open(url, '_blank') + }, pageEdit () { this.$root.$emit('pageEdit') },