you could copy the css code to have all modals centered in every theme or you could just use this theme
or you can also directly the create view in full screen:
PHP Code:
define('whatsapp:WhatsApp-handler', ['action-handler'], function (Dep) {
return Dep.extend({
actionNewLead: function() {
var attributes = {};
attributes.firstName = this.view.model.get('name');
attributes.phoneNumber = this.view.model.get('from');
attributes.whatsAppId = this.view.model.get('id');
attributes.whatsAppName = this.view.model.get('name');
attributes.source = "WhatsApp";
var scope = 'Lead'
var router = this.getRouter();
router.dispatch(scope, 'create', {
attributes: attributes,
});
},
initNewLead: function () {
this.controlButtonVisibility();
this.view.listenTo(
this.view.model,
'change:leadId',
this.controlButtonVisibility.bind(this)
);
},
controlButtonVisibility: function () {
if (this.view.model.get('leadId') === null) {
this.view.showHeaderActionItem('NewLead');
return;
}
this.view.hideHeaderActionItem('NewLead');
},
});
});

Leave a comment: