fix campaign
This commit is contained in:
@@ -61,12 +61,12 @@ Espo.define('crm:views/campaign/record/detail-bottom', 'views/record/detail-bott
|
||||
manageMassEmails: function () {
|
||||
var parentView = this.getParentView();
|
||||
if (!parentView) return;
|
||||
if (this.model.get('type') == 'Email') {
|
||||
if (~['Email', 'Newsletter'].indexOf(this.model.get('type'))) {
|
||||
parentView.showPanel('massEmails');
|
||||
parentView.showPanel('trackingUrls');
|
||||
} else {
|
||||
parentView.hidePanel('massEmails');
|
||||
parentView.showPanel('trackingUrls');
|
||||
parentView.hidePanel('trackingUrls');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -28,21 +28,8 @@ Espo.define('crm:views/campaign/record/detail', 'views/record/detail', function
|
||||
|
||||
bottomView: 'crm:views/campaign/record/detail-bottom',
|
||||
|
||||
handleStatisticsPanelAppearance: function() {
|
||||
if (this.model.get('status') == 'Planning') {
|
||||
this.hidePanel('statistics');
|
||||
} else {
|
||||
this.showPanel('statistics');
|
||||
}
|
||||
},
|
||||
|
||||
afterRender: function () {
|
||||
Dep.prototype.afterRender.call(this);
|
||||
|
||||
this.handleStatisticsPanelAppearance();
|
||||
this.listenTo(this.model, 'change:status', function () {
|
||||
this.handleStatisticsPanelAppearance();
|
||||
}, this);
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user