[IMP] mail: add message backlink on replyingto in composer
Before this commit: There is no backlink to message on 'Replying To' in header of Composer After this commit: There is a backlink to message Task-2664839 closes odoo/odoo#94873 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
This commit is contained in:
@@ -30,7 +30,9 @@
|
||||
<t t-if="composerView.hasHeader">
|
||||
<div class="o_Composer_coreHeader text-truncate">
|
||||
<t t-if="composerView.threadView and composerView.threadView.replyingToMessageView">
|
||||
Replying to <b t-esc="composerView.threadView.replyingToMessageView.message.authorName"/>
|
||||
<span class="o_cursor_pointer" t-on-click="composerView.onClickReplyingToMessage">
|
||||
Replying to <b t-esc="composerView.threadView.replyingToMessageView.message.authorName"/>
|
||||
</span>
|
||||
<i t-if="composerView.threadView.thread !== messaging.inbox" class="o_Composer_cancelReply fa fa-lg fa-times-circle rounded-circle p-0 ml-1 o_cursor_pointer" title="Stop replying" t-on-click="composerView.onClickStopReplying"/>
|
||||
</t>
|
||||
<t t-if="composerView.hasThreadName">
|
||||
|
||||
@@ -225,6 +225,13 @@ registerModel({
|
||||
onClickFullComposer() {
|
||||
this.openFullComposer();
|
||||
},
|
||||
/**
|
||||
* @private
|
||||
* @param {MouseEvent} ev
|
||||
*/
|
||||
onClickReplyingToMessage(ev) {
|
||||
this.threadView.replyingToMessageView.update({ doHighlight: true });
|
||||
},
|
||||
/**
|
||||
* Handles click on the save link.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user