Skip to content

Commit

Permalink
feat: Update Generate PDF options in app.js
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
somaromero committed Jul 30, 2024
1 parent 55d4695 commit aa6989e
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
},

],
};

0 comments on commit aa6989e

Please sign in to comment.