Skip to content

Commit e338990

Browse files
committed
Update output format options.
1 parent b3f30aa commit e338990

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/docugenerate/actions/generate-document.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "docugenerate-generate-document",
55
name: "Generate Document",
66
description: "Generates a document from a template",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
app,
@@ -26,25 +26,25 @@ export default {
2626
description: "Output format of the generated document. Defaults to .docx.",
2727
optional: true,
2828
options: [
29+
{ label: 'PDF (.pdf)', value: '.pdf' },
2930
{ label: 'Microsoft Word (.docx)', value: '.docx' },
3031
{ label: 'Microsoft Word 2007 (.doc)', value: '.doc' },
3132
{ label: 'OpenDocument Format (.odt)', value: '.odt' },
32-
{ label: 'PDF (.pdf)', value: '.pdf' },
3333
{ label: 'Plain Text (.txt)', value: '.txt' },
3434
{ label: 'PNG (.png)', value: '.png' },
3535
],
3636
},
3737
data: {
3838
type: "object",
39-
label: "Template Data",
39+
label: "Data",
4040
description: "Data that is used to generate the document.",
4141
},
4242
},
4343
async run({ $ }) {
4444
const body = {
4545
template_id: this.templateId,
4646
name: this.name,
47-
format: this.format,
47+
output_format: this.format,
4848
data: this.data,
4949
};
5050

0 commit comments

Comments
 (0)