Browse Source

[FIX] show subject in channel_sent and channel_archive

pull/22/head
x620 9 years ago
parent
commit
bcade8cd93
  1. 9
      mail_archives/static/src/js/archives.js
  2. 5
      mail_sent/static/src/js/sent.js

9
mail_archives/static/src/js/archives.js

@ -16,6 +16,15 @@ var web_client = require('web.web_client');
var _lt = core._lt;
//-------------------------------------------------------------------------------
var ChatAction = core.action_registry.get('mail.chat.instant_messaging');
ChatAction.include({
get_thread_rendering_options: function (messages) {
var options = this._super.apply(this, arguments);
options.display_subject = options.display_subject || this.channel.id === "channel_archive";
return options;
}
});
// Inherit class and override methods
base_obj.MailTools.include({
get_properties: function(msg){

5
mail_sent/static/src/js/sent.js

@ -27,6 +27,11 @@ ChatAction.include({
.find('.o_mail_chat_button_new_message')
.toggle(channel.id === "channel_inbox" || channel.id === "channel_sent");
});
},
get_thread_rendering_options: function (messages) {
var options = this._super.apply(this, arguments);
options.display_subject = options.display_subject || this.channel.id === "channel_sent";
return options;
}
});

Loading…
Cancel
Save