From aa6989ed7a10824cad65081fbb380a4886ee2883 Mon Sep 17 00:00:00 2001 From: Somar Romero Date: Tue, 30 Jul 2024 20:46:05 +0000 Subject: [PATCH] feat: Update Generate PDF options in app.js The Generate PDF options in app.js have been updated to include a new field called "Template" with the type "string" and an interface of "input-code". This change allows users to input a template for generating PDFs with flow data. --- src/app.js | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/app.js b/src/app.js index 34d0702..d604f91 100644 --- a/src/app.js +++ b/src/app.js @@ -3,25 +3,16 @@ export default { name: 'Generate PDF', icon: 'picture_as_pdf', description: 'Generate a pdf with flow data and the template.', - overview: ({ collection, url }) => [ - { - label: '$t:collection', - text: collection, - }, - { - label: 'Url', - text: url, - }, - ], options: [ { - field: 'text', - name: 'Text', + field: 'template', + name: 'Template', type: 'string', meta: { width: 'full', - interface: 'input', + interface: 'input-code', }, }, + ], };