Use only one preview link in preview modal

[MAILPOET-2430]
This commit is contained in:
Jan Jakeš
2020-02-11 09:51:35 +01:00
committed by Jack Kitterhing
parent 369675626c
commit b22198f599
3 changed files with 3 additions and 12 deletions

View File

@@ -280,7 +280,6 @@ Module.SidebarPreviewView = Marionette.View.extend({
this.previewView = new Module.NewsletterPreviewView({
previewType: window.localStorage.getItem(App.getConfig().get('newsletterPreview.previewTypeLocalStorageKey')),
previewUrl: response.meta.preview_url,
publicPreviewUrl: response.meta.public_preview_url,
});
this.previewView.render();
@@ -402,7 +401,6 @@ Module.NewsletterPreviewView = Marionette.View.extend({
initialize: function (options) {
this.previewType = options.previewType;
this.previewUrl = options.previewUrl;
this.publicPreviewUrl = options.publicPreviewUrl;
this.width = '100%';
this.height = '100%';
// this.width = App.getConfig().get('newsletterPreview.width');
@@ -412,7 +410,6 @@ Module.NewsletterPreviewView = Marionette.View.extend({
return {
previewType: this.previewType,
previewUrl: this.previewUrl,
publicPreviewUrl: this.publicPreviewUrl,
width: this.width,
height: this.height,
};