Update newsletter template format for saving/exporting in editor
[MAILPOET-2686]
This commit is contained in:
committed by
Veljko V
parent
dd0a19a314
commit
6971161535
@@ -69,7 +69,7 @@ Module.saveTemplate = function (options) {
|
|||||||
return Thumbnail.fromNewsletter(App.toJSON())
|
return Thumbnail.fromNewsletter(App.toJSON())
|
||||||
.then(function (thumbnail) {
|
.then(function (thumbnail) {
|
||||||
var data = _.extend(options || {}, {
|
var data = _.extend(options || {}, {
|
||||||
thumbnail: thumbnail,
|
thumbnail_data: thumbnail,
|
||||||
body: JSON.stringify(App.getBody()),
|
body: JSON.stringify(App.getBody()),
|
||||||
categories: JSON.stringify([
|
categories: JSON.stringify([
|
||||||
'saved',
|
'saved',
|
||||||
@@ -90,7 +90,7 @@ Module.exportTemplate = function (options) {
|
|||||||
return Thumbnail.fromNewsletter(App.toJSON())
|
return Thumbnail.fromNewsletter(App.toJSON())
|
||||||
.then(function (thumbnail) {
|
.then(function (thumbnail) {
|
||||||
var data = _.extend(options || {}, {
|
var data = _.extend(options || {}, {
|
||||||
thumbnail: thumbnail,
|
thumbnail_data: thumbnail,
|
||||||
body: App.getBody(),
|
body: App.getBody(),
|
||||||
categories: JSON.stringify(['saved', App.getNewsletter().get('type')]),
|
categories: JSON.stringify(['saved', App.getNewsletter().get('type')]),
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user