I solved it by triggering a parent change when the collection is refreshed (which happens after a link is added)
({ extendsFrom: 'SubpanelListView',
initialize: function(options){
this._super('initialize',[options]);
console.log('SubpanelListView');
this.on('get.collection', this.refreshEmailPanelTop, this);
},
// force reload of emails subpanel on Cases module for internal compose with
// just added engineers by forcing a change event on the parent.
refreshEmailPanelTop: function() {
var module = this.context.parent.get('module');
if(module == 'Cases'){
this.context.parent.trigger('change');
}
},
})
FrancescaS
I solved it by triggering a parent change when the collection is refreshed (which happens after a link is added)
({ extendsFrom: 'SubpanelListView',
initialize: function(options){
this._super('initialize',[options]);
console.log('SubpanelListView');
this.on('get.collection', this.refreshEmailPanelTop, this);
},
// force reload of emails subpanel on Cases module for internal compose with
// just added engineers by forcing a change event on the parent.
refreshEmailPanelTop: function() {
var module = this.context.parent.get('module');
if(module == 'Cases'){
this.context.parent.trigger('change');
}
},
})
FrancescaS
What if I update and existing record,rather than adding a new link?Francesca Shiekh