Redesign the save part

[MAILPOET-2281]
This commit is contained in:
Amine Ben hammou
2019-09-25 00:06:42 +01:00
committed by Jack Kitterhing
parent c1d38095d8
commit ff25324ed8
3 changed files with 18 additions and 8 deletions

View File

@ -107,6 +107,7 @@ Module.SaveView = Marionette.View.extend({
templateContext: function () {
return {
wrapperClass: this.wrapperClass,
isWoocommerceTransactional: this.model.isWoocommerceTransactional(),
};
},
events: {
@ -356,8 +357,9 @@ App.on('before:start', function (BeforeStartApp) {
});
App.on('start', function (BeforeStartApp) {
var topSaveView = new Module.SaveView();
var bottomSaveView = new Module.SaveView();
var model = BeforeStartApp.getNewsletter();
var topSaveView = new Module.SaveView({ model: model });
var bottomSaveView = new Module.SaveView({ model: model });
bottomSaveView.setDropdownDirectionUp();
BeforeStartApp._appView.showChildView('topRegion', topSaveView);