Skip to content

Commit

Permalink
fix campaign bottom view
Browse files Browse the repository at this point in the history
  • Loading branch information
yurikuzn committed Sep 14, 2022
1 parent 64c933e commit 9ef1c59
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions client/modules/crm/src/views/campaign/record/detail-bottom.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,24 @@ define('crm:views/campaign/record/detail-bottom', 'views/record/detail-bottom',
index: -1,
});

this.listenTo(this.model, 'change', function () {
this.listenTo(this.model, 'change', () => {
this.manageMassEmails();
}, this);
});
},

afterRender: function () {
Dep.prototype.setupPanels.call(this);
Dep.prototype.afterRender.call(this);

this.manageMassEmails();
},

manageMassEmails: function () {
var parentView = this.getParentView();
if (!parentView) return;

if (!parentView) {
return;
}

if (~['Email', 'Newsletter'].indexOf(this.model.get('type'))) {
parentView.showPanel('massEmails');
parentView.showPanel('trackingUrls');
Expand Down

0 comments on commit 9ef1c59

Please sign in to comment.