diff --git a/client/src/components/WebinputCSV.vue b/client/src/components/WebinputCSV.vue index 81d2956..515231d 100644 --- a/client/src/components/WebinputCSV.vue +++ b/client/src/components/WebinputCSV.vue @@ -83,6 +83,7 @@ Please note that this preview uses example data and thus does not take the CERTbund rules into account. The example data contains more data and aggregated fields than real data. To consider the input data, use the tools in the "Data Validation and Submission" section.
{{ mailgenPreviewParsed.body }}
{{ notification[2] }}
@@ -1439,7 +1441,7 @@ export default ({
return dc.decode(uArr);
});
- return [subject, to, decodedBody]
+ return [subject, to, decodedBody, contentType]
},
/**
* Show an Email Template preview with a list of templates (see mailgen_multi_templates_enabled in docs)
@@ -1467,8 +1469,8 @@ export default ({
this.mailgenTemplates[template_index].validationText = 'Validated OK';
this.mailgenLog = data.log;
- let [subject, to, body] = this.parseMIME(this.mailgenPreview)
- this.mailgenPreviewParsed = {subject: subject, to: to, body: body}
+ let [subject, to, body, contentType] = this.parseMIME(this.mailgenPreview)
+ this.mailgenPreviewParsed = {subject: subject, to: to, body: body, contentType: contentType}
if (showDialog) {
this.showMailgenPreview = true;
}
@@ -1533,8 +1535,8 @@ export default ({
this.mailgenTemplateValidationText = 'Validated OK';
this.mailgenLog = data.log;
- let [subject, to, body] = this.parseMIME(this.mailgenPreview)
- this.mailgenPreviewParsed = {subject: subject, to: to, body: body}
+ let [subject, to, body, contentType] = this.parseMIME(this.mailgenPreview)
+ this.mailgenPreviewParsed = {subject: subject, to: to, body: body, contentType: contentType}
if (showDialog) {
this.showMailgenPreview = true;
}