[FIX] mail: fix issue with disappearing filters in some cases
The client action had a weird issue: going back from a breadcrumb to the client action made the searchview (filters/favorites) buttons disappear. This is caused by a weird behavior of the control panel. This fix is the safest for now, but working on the control panel behavior would be a better long term solution.
This commit is contained in:
@@ -214,7 +214,9 @@ var ChatAction = Widget.extend(ControlPanelMixin, {
|
||||
var def1 = this.thread.appendTo(this.$('.o_mail_chat_content'));
|
||||
var def2 = this.basic_composer.appendTo(this.$('.o_mail_chat_content'));
|
||||
var def3 = this.extended_composer.appendTo(this.$('.o_mail_chat_content'));
|
||||
var def4 = this.searchview.appendTo($("<div>"));
|
||||
var def4 = this.searchview.appendTo($("<div>")).then(function () {
|
||||
self.$searchview_buttons = self.searchview.$buttons.contents();
|
||||
});
|
||||
|
||||
this.render_sidebar();
|
||||
|
||||
@@ -486,7 +488,7 @@ var ChatAction = Widget.extend(ControlPanelMixin, {
|
||||
cp_content: {
|
||||
$buttons: this.$buttons,
|
||||
$searchview: this.searchview.$el,
|
||||
$searchview_buttons: this.searchview.$buttons.contents(),
|
||||
$searchview_buttons: this.$searchview_buttons,
|
||||
},
|
||||
searchview: this.searchview,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user