Update newsletter template format for saving/exporting in editor

[MAILPOET-2686]
This commit is contained in:
Rostislav Wolny
2021-10-20 13:51:08 +02:00
committed by Veljko V
parent dd0a19a314
commit 6971161535

View File

@@ -69,7 +69,7 @@ Module.saveTemplate = function (options) {
return Thumbnail.fromNewsletter(App.toJSON())
.then(function (thumbnail) {
var data = _.extend(options || {}, {
thumbnail: thumbnail,
thumbnail_data: thumbnail,
body: JSON.stringify(App.getBody()),
categories: JSON.stringify([
'saved',
@@ -90,7 +90,7 @@ Module.exportTemplate = function (options) {
return Thumbnail.fromNewsletter(App.toJSON())
.then(function (thumbnail) {
var data = _.extend(options || {}, {
thumbnail: thumbnail,
thumbnail_data: thumbnail,
body: App.getBody(),
categories: JSON.stringify(['saved', App.getNewsletter().get('type')]),
});